diff options
author | Joseph Eagar <joeedh@gmail.com> | 2010-02-04 03:17:25 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2010-02-04 03:17:25 +0300 |
commit | 843b0e343b96e6f59510f65f811fd6de4b83117d (patch) | |
tree | 6ff7a0e760e4d3fe73a63c94f3bced026e6ac2cd /source/blender/blenlib | |
parent | 0020de72e45cae82561e07e284c520170e5e3ea8 (diff) |
ghash tweak to not do so much preallocation
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/BLI_ghash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c index 214975ab4ef..6857f2ab5e0 100644 --- a/source/blender/blenlib/intern/BLI_ghash.c +++ b/source/blender/blenlib/intern/BLI_ghash.c @@ -60,7 +60,7 @@ GHash *BLI_ghash_new(GHashHashFP hashfp, GHashCmpFP cmpfp) { GHash *gh= MEM_mallocN(sizeof(*gh), "GHash"); gh->hashfp= hashfp; gh->cmpfp= cmpfp; - gh->entrypool = BLI_mempool_create(sizeof(Entry), 1024, 1024, 0); + gh->entrypool = BLI_mempool_create(sizeof(Entry), 64, 64, 0); gh->cursize= 0; gh->nentries= 0; |