[zeromq-dev] STL use in zeromq

Mikael Helbo Kjær mhk at designtech.dk
Fri Oct 29 14:32:38 CEST 2010


Hi Pieter

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. From there the two diverge with the current way of deleting getting more expensive than the erase-remove idiom. So the current way of doing thing is certainly not a bad idea as I don't think (but I am not that familiar with all the internals of zmq) that it should have vectors that large inside it (maybe if you have a really big high watermark in a queue somewhere).

Regards,
Mikael



More information about the zeromq-dev mailing list