[zeromq-dev] [czmq] zero-copy API Deprecation

Pieter Hintjens ph at imatix.com
Mon Jul 8 23:08:54 CEST 2013


On Mon, Jul 8, 2013 at 10:18 PM, Uli Köhler
<ulikoehler.dev at googlemail.com> wrote:

> I'm not sure if there is any significant performance gain for non-constant
> data, but given the results, I propose to add functionality to handle
> constant data efficiently, if it's a common use case for the community.

It's a plausible use case but what I would do, when making a
performance-critical binary protocol, is use a hand-tuned codec class
that used the libzmq API directly. For one thing you want the
constants to be invisible to applications anyhow.

We did this in FileMQ and Zyre and it creates nice classes that use
the same CLASS style as CZMQ.

Then we can ask the question of whether we can improve the zero-copy
API and performance in libzmq.

-Pieter



More information about the zeromq-dev mailing list