> Still curious. Does it mean that using DirectByteBuffer only makes
> sense if one uses ZMQ+Disruptor?

Not at all. That's just one example of how I do it.

> -- what we win here

There is no way (that I know of) to pass a Java byte array to the
underlying c/c++ function without a copy. What the DirectByteBuffer
allows you to do is get the pointer to the memory region it references
and you can pass this along to zmq_recv eliminating the need to do a
copy between boundaries.
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to