Reduce the default maximum block size in chunked_queue from 128 to 64 to save RAM waste in the last chunk. PiperOrigin-RevId: 997961091
diff --git a/absl/container/chunked_queue.h b/absl/container/chunked_queue.h index 6210088..682ba2b 100644 --- a/absl/container/chunked_queue.h +++ b/absl/container/chunked_queue.h
@@ -67,7 +67,7 @@ // // chunked_queue allows customization of the block size for each block. By // default the block size is set to 1 element and the size grows by 1.5x for the -// next block until it reaches the default max block size, which is 128 +// next block until it reaches the default max block size, which is 64 // elements. // // = fixed size @@ -127,7 +127,7 @@ class chunked_queue { public: static constexpr size_t kBlockSizeMin = (BLo == 0 && BHi == 0) ? 1 : BLo; - static constexpr size_t kBlockSizeMax = (BLo == 0 && BHi == 0) ? 128 : BHi; + static constexpr size_t kBlockSizeMax = (BLo == 0 && BHi == 0) ? 64 : BHi; private: static_assert(kBlockSizeMin > 0, "Min block size cannot be zero");