Anonymous wrote:Allocating 1000 nodes will result in 1000 memory allocations for the data you want to store in a node and 1000 allocations for nodes itself.
Not so with STLport. It has a node allocator.
Anonymous wrote:In other words, while this sort of allocation doesn't matter much on a desktop machine
Oh but it does just as much. It's just that the scale you are dealing with is different.
Anonymous wrote:when one is dealing with tons of memory and much better heap management , the way STL handles memory tends to result in defragmentation and overall slowdowns on PocketPCs.
Do you have any evidence pointing to less efficient heap management on the PPC?
Anonymous wrote:There used to be another issue with STL - namely code bloat resulting from using templates. Every time you create a specialized version of some sort of container , the compiler ends up generating separate set of code for each one of them.
This is a common misconception about the STL. It doesn't produce more "bloat" then your own implementation. That is if you know what you are doing. Nothing prevents you from explictely using a std::Vector<void*> to store objects. But then again I would argue that storing pointers in a std::vector<> is often wrong in the first place.
Should you use the STL everywhere? Of course not. But I would argue that using it first and then optimizing found bottlenecks will shorten your development time a lot. Writting "optimal" code first is simply silly.