The relations update code does tagging needed to ensure that the array of bases is updated when relations are updated. It was done by tagging the Scene ID node, and potentially recursing into all dependent depsgraph nodes. If there is a driver on a scene property it was unnecessarily re-evaluated. This solves the slow behavior of adding objects in the test file from #117335. Pull Request: https://projects.blender.org/blender/blender/pulls/117403