3 ms·
Only the libc implementation of std::deque allocates 4KiB blocks and lives upto it's performance and utility. The MSVC implementation is terrible (8 bytes) and
by rwbt 7y ago
Only the libc implementation of std::deque allocates 4KiB blocks and lives upto it's performance and utility. The MSVC implementation is terrible (8 bytes) and even the GCC one isn't that efficient (512 bytes).
Even though boost has a customizable deque block size, it's performance is still way behind Clang's libc.
- Something1234 7y agoWait why wouldn't std::deque allocate blocks as some multiple of the sizeof the thing it holds?