On Fri, Apr 18, 2014 at 09:26:37AM +0200, Pieter Hintjens wrote:
> On Fri, Apr 18, 2014 at 12:39 AM, Lindley French <[email protected]> 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
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to