Page MenuHome

Use GHash for BHead idname lookups
AbandonedPublic

Authored by Campbell Barton (campbellbarton) on Mar 10 2015, 12:05 PM.

Details

Summary

This patch avoids looping over bhead's linked list when looking up values by name...

for (bhead = blo_firstbhead(fd); bhead; bhead = blo_nextbhead(fd, bhead)) {...}

replacing 2 of these lookups with ghash lookups, note that this is used during appaned and library loading.
The use with library loading gives most useful improvement.

Gives close to 2x overall speedup loading Tears-of-Steel: /mango/pro/scenes/02_1d/02_1d.blend (tested with release build in background mode)

Diff Detail

Repository
rB Blender
Branch
staging-D1171-readfile_ghash