[Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x Scene.c
Campbell Barton
cbarton at metavr.com
Tue Jan 3 06:38:39 CET 2006
campbellbarton (Campbell Barton) 2006/01/03 06:38:39 CET
Modified files:
blender/source/blender/python/api2_2x Scene.c
Log:
made scene.getChildren() a heap faster. 983.3 times faster in my test.
getting 7200 objects did take: 1.18 sec, now 0.0012 sec
It was doing a full object list lookup for every object in the scenes base using the name to compare.
now it just gets the object directly from the base and converts it to a python object, adding it to the list.
- Cam
Revision Changes Path
1.39 +5 -11 blender/source/blender/python/api2_2x/Scene.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Scene.c.diff?r1=1.38&r2=1.39&cvsroot=bf-blender>
More information about the Bf-blender-cvs
mailing list