[zeromq-dev] multipart messages in a realtime environment

Goswin von Brederlow goswin-v-b at web.de
Fri Apr 18 12:29:08 CEST 2014


On Fri, Apr 18, 2014 at 09:26:37AM +0200, Pieter Hintjens wrote:
> On Fri, Apr 18, 2014 at 12:39 AM, Lindley French <lindleyf at gmail.com> wrote:
> 
> > That's fine on the sending side. What about the receiving side?
> 
> There's no zero copy functionality for receiving messages unless I've
> missed something.
> 
> -Pieter

I guess you would need something to recv() into a pre-allocated
buffer. That would need some patches.

Would be nice to have though. E.g. a server that saves data to a file
using Linux aio needs data to be page aligned. Providing an
alloc_buffer_hook that uses posix_memalign with the right flags would
allo data to be received, passed through all the pipes and then
written to disk without the need to copy it.

MfG
	Goswin



More information about the zeromq-dev mailing list