[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26598] trunk/blender/source/blender/ blenlib/intern/BLI_ghash.c: ghash tweak to not do so much preallocation

Joseph Eagar joeedh at gmail.com
Thu Feb 4 01:17:25 CET 2010


Revision: 26598
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26598
Author:   joeedh
Date:     2010-02-04 01:17:25 +0100 (Thu, 04 Feb 2010)

Log Message:
-----------
ghash tweak to not do so much preallocation

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/BLI_ghash.c

Modified: trunk/blender/source/blender/blenlib/intern/BLI_ghash.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/BLI_ghash.c	2010-02-03 21:41:03 UTC (rev 26597)
+++ trunk/blender/source/blender/blenlib/intern/BLI_ghash.c	2010-02-04 00:17:25 UTC (rev 26598)
@@ -60,7 +60,7 @@
 	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;





More information about the Bf-blender-cvs mailing list