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.
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs