diff options
author | Ton Roosendaal <ton@blender.org> | 2008-01-30 21:18:33 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-01-30 21:18:33 +0300 |
commit | b18499fdf612dfe78ab32e45aefff9d2e6b1ae29 (patch) | |
tree | fe91218556f3f7e1f9be7d415cff665b88a131de /source/blender/blenloader/intern/readfile.h | |
parent | a12602e51fc0a4fcf87c905b8963ecee3df9dfa1 (diff) |
Speedup of filereading: when using large libraries (referenced data from
other blend files) lookups of data slowed down tremendously.
Added another bsearch for speedup. Makes a difference here (200+ MB files)!
Diffstat (limited to 'source/blender/blenloader/intern/readfile.h')
-rw-r--r-- | source/blender/blenloader/intern/readfile.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.h b/source/blender/blenloader/intern/readfile.h index 79392023a56..d8644ca52f2 100644 --- a/source/blender/blenloader/intern/readfile.h +++ b/source/blender/blenloader/intern/readfile.h @@ -37,6 +37,7 @@ struct OldNewMap; struct MemFile; +struct bheadsort; typedef struct FileData { // linked list of BHeadN's @@ -76,6 +77,9 @@ typedef struct FileData { struct OldNewMap *libmap; struct OldNewMap *imamap; + struct bheadsort *bheadmap; + int tot_bheadmap; + ListBase mainlist; /* ick ick, used to return |