[zeromq-dev] Very Small Messages/Manual

Martin Sustrik sustrik at 250bpm.com
Tue Jul 27 12:32:23 CEST 2010


Oliver Smith wrote:
> On 7/26/2010 2:37 AM, Martin Sustrik wrote:
>> In theory, it would make VSM messages smaller (no content pointer).
>> However, in practice, you'll get 6 bytes (x86_64) of padding following
>> the structure -- because of compiler aligning it to CPU word boundary.
>>    
> #pragma pack(push, 1)
> ?

Then you'll get unaligned data. CPU will be busy rotating bits back and 
forth :)

Martin




More information about the zeromq-dev mailing list