3 ms·
Maybe they wrote it really badly so someone will take offence and rewrite it for them! Also in my experience `std::deque` is almost always slower than `std::ve
by IshKebab 7y ago
Maybe they wrote it really badly so someone will take offence and rewrite it for them!
Also in my experience `std::deque` is almost always slower than `std::vector`. In theory it shouldn't be, but copying contiguous data is so fast on modern CPUs that the reallocation of `std::vector` (or occasional front-insertion) is very cheap.
- grovellogic 7y agoIn theory copying contiguous data is faster than dealing with pointer indirection.