Skip to main content

Timeline for STL for games, yea or nay?

Current License: CC BY-SA 2.5

3 events
when toggle format what by license comment
Feb 20, 2011 at 22:30 comment added Terrance Cohen I appreciate your point that it's important to understand well the problem you're solving. But with respect, I still think I disagree with your conclusion. Every problem has usage patterns that cannot be expressed to custom STL allocators, but can be easily leveraged in a custom container, such as a fixed-block allocator implemented with a flat array. And applying a fixed transformation over an array of homogeneous types will very likely result in much better cache coherency than iterating over a vector of polymorphic types and invoking virtual methods.
Jul 28, 2010 at 14:19 comment added Skizz As mentioned elsewhere, you can provide custom allocators to the container classes - these could use freelists if you want (preallocated arrays). The array-of-structs vs struct-of-arrays is very dependant on what you're trying to do - there is no hard and fast rule about which one is better.
Jul 15, 2010 at 0:45 history answered Terrance Cohen CC BY-SA 2.5