[libcxx-commits] [libcxx] [libcxx] Configuration option to lower deque block size (PR #198348)

Prabhu Rajasekaran via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 10 10:55:56 PDT 2026


================
@@ -522,6 +522,15 @@ typedef __char32_t char32_t;
 
 #  define _PSTL_USE_NONTEMPORAL_STORES_IF_ALLOWED
 
+#  ifndef _LIBCPP_USE_LOWER_DEQUE_BLOCK_SIZE
+#    define _LIBCPP_USE_LOWER_DEQUE_BLOCK_SIZE 0
+#    define _LIBCPP_DEQUE_TARGET_BLOCK_SIZE 4096
+#    define _LIBCPP_DEQUE_MIN_ELEMENTS_PER_BLOCK 16
+#  else
+#    define _LIBCPP_DEQUE_TARGET_BLOCK_SIZE 512
+#    define _LIBCPP_DEQUE_MIN_ELEMENTS_PER_BLOCK 2
----------------
Prabhuk wrote:

That's reasonable. Updated the patch. PTAL.

https://github.com/llvm/llvm-project/pull/198348


More information about the libcxx-commits mailing list