4 ms·
Thanks for the clarification. I think STL is the greatest thing since sliced bread. The time I have wasted in the 90’s debugging malloc/realloc/free rat’s nest
by GnarfGnarf 2y ago
Thanks for the clarification. I think STL is the greatest thing since sliced bread.
The time I have wasted in the 90’s debugging malloc/realloc/free rat’s nests for dynamic arrays, I could have put to better use. Thank god for vector/deque etc.
I work isolated. I didn’t learn about STL until years later,
- daemin 2y agoProbably also because Game Developers had to deal with the MS STL implementation which for many years both the compiler and standard library were behind the times and not that optimal. Case in point when using a std::deque with MS STL it's not really efficient because it has a very small buffer size, so it pretty much degrades into a linked list if the element is big enough. See: https://devblogs.microsoft.com/oldnewthing/20230810-00/?p=108587 https://devblogs.microsoft.com/oldnewthing/20230810-00/?p=10... Then there's the case of std::unordered_map which has been benchmarked recently, and for all the flak that boost gets I am considering using it for its hash map. https://jacksonallan.github.io/c_cpp_hash_tables_benchmark/ https://jacksonallan.github.io/c_cpp_hash_tables_benchmark/