[Bf-blender-cvs] [85d9f123393] master: BLI: increase default inline buffer capacity in BitVector
Jacques Lucke
noreply at git.blender.org
Tue Nov 29 16:36:08 CET 2022
Commit: 85d9f123393137e4f50b0dba7eea7ea3babf132e
Author: Jacques Lucke
Date: Tue Nov 29 16:35:59 2022 +0100
Branches: master
https://developer.blender.org/rB85d9f123393137e4f50b0dba7eea7ea3babf132e
BLI: increase default inline buffer capacity in BitVector
Using 32 does not make much sense, because there will be 4 remaining
padding bytes in the struct anyway. Using 64 instead does not actually
increase the size of the struct, but makes allocations less likely.
===================================================================
M source/blender/blenlib/BLI_bit_vector.hh
===================================================================
diff --git a/source/blender/blenlib/BLI_bit_vector.hh b/source/blender/blenlib/BLI_bit_vector.hh
index e5d602b5e04..eddfbaf4528 100644
--- a/source/blender/blenlib/BLI_bit_vector.hh
+++ b/source/blender/blenlib/BLI_bit_vector.hh
@@ -169,7 +169,7 @@ template<
/**
* Number of bits that can be stored in the vector without doing an allocation.
*/
- int64_t InlineBufferCapacity = 32,
+ int64_t InlineBufferCapacity = 64,
/**
* The allocator used by this vector. Should rarely be changed, except when you don't want that
* MEM_* is used internally.
More information about the Bf-blender-cvs
mailing list