From 4c042f21450eb6a4c8e1d16d6a7def45d48ceaf2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 9 May 2013 12:46:35 +0000 Subject: bmesh: optimize bmesh_vert_separate, redice allocs (best cast it wont do any allocs). gives approx 16% overall speedup to edgesplit modifier. also reduce size of smallhash stack, was 521, which got doubled and was quite large on the stack. reduce to 64. --- source/blender/blenlib/BLI_smallhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_smallhash.h') diff --git a/source/blender/blenlib/BLI_smallhash.h b/source/blender/blenlib/BLI_smallhash.h index 84cd68e9d9c..b6acc06159a 100644 --- a/source/blender/blenlib/BLI_smallhash.h +++ b/source/blender/blenlib/BLI_smallhash.h @@ -43,7 +43,7 @@ typedef struct { } SmallHashEntry; /*how much stack space to use before dynamically allocating memory*/ -#define SMSTACKSIZE 521 +#define SMSTACKSIZE 64 typedef struct SmallHash { SmallHashEntry *table; SmallHashEntry _stacktable[SMSTACKSIZE]; -- cgit v1.2.3