bug with wxVariant

Sebastien Senechal seb at cyberdine.ca
Tue Oct 24 08:49:00 PDT 2006


Le Dimanche Octobre 22 2006 23:11, Willem Kokke a écrit :
\>
> I suppose I have just a different mind set, since I come from a graphics
> programming background, where speed is important.. if I'd use a array of
> wxVariants to store data, I'd propably get fired..
>
he he, have been coding a lot for video apps that myself, totally agree.
performance is a sensible matter but in m y case it is a code generator, i do 
not need speed but code flexibility.

i do not use variant anymore, been writing my own data buffer derived from 
wxMemoryBuffer while implemention all kind of serialization.
Reading what u said, i may think using a more stl  direct approach.


> also if i followed your suggestions, why use functionnalities like
>
> > wxHashList,
> > etc... instead of goo old STL functions hasmap ? waste of memory and
> > processor time too ? to save a line of code or 2? :)
>
> I use STL in lots of places, for vectors and hash maps, and i use it
> instead of the wxWidgets constructs.

funny, i started cleanly with stl constructs... but decided to move to 
wxWdigets for standardiztion purposes.... thought the impact was minimal.

i prefer speed...

so thanks for your suggestion :)




More information about the wx-users mailing list