diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-09 16:46:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-09 16:46:35 +0400 |
commit | 4c042f21450eb6a4c8e1d16d6a7def45d48ceaf2 (patch) | |
tree | 0f08ca69ea11a6b14cf892ae8fb29715edd666ad /source/blender/blenlib | |
parent | 56485b6562ee349513e5de4ac450150f569a230d (diff) |
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.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_smallhash.h | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |