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). cr _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
