On 22-Apr-2002 Marco Fonseca wrote: > Just got 65.0alpha1 compiled. I noticed its 432k striped, which is more > than double of 62.1 striped 208k. I'm curious where all this comes > from? STL? > > MarcoF
Part of it is the STL because of the inlining. Another reason is blackbox prior to the STL used its own Linked List class for EVERYTHING. If the code needed to hold items it used a list, even if that was not the best choice. For instance one of the things blackbox has is a container of Window objects from X. When an event occurs we need to find out which BlackboxWindow goes with the Window. The old code stored all of these Windows in a list wrapped in a structure that held a pointer to the BlackboxWindow. When an event occured we walked the list. The new code uses a STL map. Currently there are lists, vectors, maps, deques, and a priority queue in the code. The deques were used to make porting easier with a menu rewrite we could probably use something else. We could probably kill the vectors and use a list as well. The answer is, yes the size grew. But we gained speed, improved design and maintainability. Not a bad trade off.
