diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-03-10 16:33:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-03-12 17:55:49 +0300 |
commit | a8f6d51ebce6e94bd953492f01600d51871f2757 (patch) | |
tree | 3cece2f22c4cee23c04e42e9fc4447ce81a22fda /source/blender/blenloader/intern/readfile.h | |
parent | f2d4f6b086506c491b0f2efbacfcd0ef8c9b72ce (diff) |
D1171: Use GHash for BHead idname lookups
This patch avoids looping over bhead's linked list when looking up values by name.
Used during appaned and library loading.
Gives noticeable overall speedup loading files that used libraries. (nearly 2x on some Mango files)
Diffstat (limited to 'source/blender/blenloader/intern/readfile.h')
-rw-r--r-- | source/blender/blenloader/intern/readfile.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.h b/source/blender/blenloader/intern/readfile.h index 281b5e56acf..51a68926455 100644 --- a/source/blender/blenloader/intern/readfile.h +++ b/source/blender/blenloader/intern/readfile.h @@ -93,6 +93,9 @@ typedef struct FileData { struct BHeadSort *bheadmap; int tot_bheadmap; + + /* see: USE_GHASH_BHEAD */ + struct GHash *bhead_idname_hash; ListBase *mainlist; |