[zeromq-dev] Memory alignment

Chuck Remes cremes.devlist at mac.com
Fri Jul 8 16:38:28 CEST 2011

On Jul 8, 2011, at 2:15 AM, Martin Sustrik wrote:

> On 07/08/2011 09:04 AM, Pieter Hintjens wrote:
>> The cost is 2 or 6 extra bytes.
> Yes. That's the reason why it's not implemented that way. For VSMs that 
> would mean 15% increase in overall memory usage.

Perhaps we could make that a configure option when building the library. That is, pass a flag to change the zmq_msg_t structure layout to optimize for memory or for speed (default to memory optimization as it is today).


More information about the zeromq-dev mailing list