> Also, can someone tell me... For a "fast" and "light" toolkit, is there
> a performance impact with the overloading and virtual functions?
Yes,there is a performance impact as virtual methods adress ptr need to be 
resolved dynamically using Virtual Method Tables (hope this spells like this in 
english).

Now let's get some distance and try to understand what optimization really is, 
in fact: it's not because you use a virtual method than your code is going to 
be much slower, suddenly.
As an example, if we add some day a set method for maximizing windows that will 
likely be better virtual, you'll never feel the difference because you will 
unlikely call this method 3000 times per second :-)

By opposition, super-optimized linked list code will be damn slow if you use 
them to search data, while non optimized btrees or even hash tables would be so 
fast that user won't feel the difference ...
I'm talking about ADT's that IMHO determine more speed and efficiency nowaday's 
; than low level focused analysis, which still matters though.

Fabien

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to