Blender Git Loki
Git Commits -> Revision 68b931b
Revision 68b931b by Campbell Barton (master) January 6, 2011, 04:01 (GMT) |
py/rna optimizations, will help for faster exporting. Speedup for getting collection indices, avoid getting the collection length unless a negative index is given. This avoids a loop over the entire collection in many cases. Speedup for getting collection slices by detecting collection[:] and internally calling collection.values(), this gives a big speedup with some collections because each slice item would loop over the list until that index was found. Rough test with 336 objects. - getting index of listbase collection ~ 5.0x faster - getting index of array collection ~ 1.15x faster - getting slices of listbase collections ~ 34.0x faster - getting slices of array collections ~ 1.5x faster |
Commit Details:
Full Hash: 68b931b03f8ed0e082850192478f79513063dd62
SVN Revision: 34117
Parent Commit: 1246f1c
Lines Changed: +105, -59
1 Modified Path:
/source/blender/python/intern/bpy_rna.c (+105, -59) (Diff)