Re:My favourite C++ footgun
by owl57 on Wednesday June 23, 2021 @03:53AM
(#27601944)
I had a vague feeling that std::deque is a "heavy" thing which you shouldn't have a million of, but iterating through a couple big ones is pretty fast. 1–4K batches wouldn't hurt my feelings. Looked up GCC, it's actually slightly less heavy at 512 bytes per node[1]. But the MSVC part — that caught me completely off guard.
https://github.com/gcc-mirror/gcc/blob/47749c43acb460ac8f410...