[zeromq-dev] Memory alignment
Emmanuel TAUREL
taurel at esrf.fr
Fri Jul 8 16:43:09 CEST 2011
Hello all,
On 08/07/2011 16:38, Chuck Remes wrote:
> 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).
I will be in favor of something similar to this.
Regards
Emmanuel Taurel
More information about the zeromq-dev
mailing list