diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-10 11:16:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-10 17:31:16 +0300 |
commit | bcefce33f24dd3646b84e1baa0db6db76222f1c2 (patch) | |
tree | 9fe354b16d815a8a2ea9fb6735333320d96768db /source/blender/blenlib/BLI_mempool.h | |
parent | 9df1e0cad54599c53a1eb877651fceb461d88148 (diff) |
BLI_mempool: split thread-safe iteration into the private API
Splitting out thread safe iteration logic means regular iteration
isn't checking for the thread-safe pointer each step.
This gives a small but measurable overall performance gain of 2-3%
when redrawing a high-poly mesh.
Ref D11564
Reviewed By: mont29
Diffstat (limited to 'source/blender/blenlib/BLI_mempool.h')
-rw-r--r-- | source/blender/blenlib/BLI_mempool.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_mempool.h b/source/blender/blenlib/BLI_mempool.h index 29fb6a2e233..c11802d6270 100644 --- a/source/blender/blenlib/BLI_mempool.h +++ b/source/blender/blenlib/BLI_mempool.h @@ -68,8 +68,6 @@ typedef struct BLI_mempool_iter { BLI_mempool *pool; struct BLI_mempool_chunk *curchunk; unsigned int curindex; - - struct BLI_mempool_chunk **curchunk_threaded_shared; } BLI_mempool_iter; /* flag */ |