Broken: 2.79.0 / 2.79.4
Short description of error
When I try to instantiate a large number N of objects in a scene, it requires a quadratic time (N^2)
perform this task. The time to modify an object attribute increases linearly with the number of objects in
If there are 10000 objects in the scene, it will take 10 times longer to set an object location than if there were
only 1000 objects.
Is this time cost a known limitation of Blender?
I don't use any GUI / Viewport, only the Python script.
Exact steps for others to reproduce the error
Run the attached script with blender. It uses timeit to measure execution time.
It creates an empty object, and then it creates a large number of duplicates, measuring for each of these the
time required to set the object x-location.
It prints the average measured time (to set 1 location) for different number of objects in the scene.
This time increases linearly with the number of objects.
The output I get:
Time to set one object location (mean from 0 to 5000 objects): 0.000012
Time to set one object location (mean from 0 to 10000 objects): 0.000026