[zeromq-dev] STL use in zeromq
Pieter Hintjens
ph at imatix.com
Sat Oct 30 00:51:55 CEST 2010
2010/10/29 Mikael Helbo Kjær <mhk at designtech.dk>:
> I had a few moments so I tested a scale of values from 100 to 10000 in vector sizes. The Erase-remove idiom is indeed more expensive until the vectors grow to be around 10k elements.
Thanks for taking the time to work this though. In general (and
especially in code that has this many layers of abstraction) you want
to test all performance assumptions against running code. Theory is
great in theory but in practice, practice is better. :-)
-
Pieter Hintjens
iMatix - www.imatix.com
More information about the zeromq-dev
mailing list