• Jens Auer's avatar
    "zero-copy" raw_decoder · 36797936
    Jens Auer authored
    A memcpy is eliminated when receiving data on a ZMQ_STREAM socket. Instead
    of receiving into a static buffer and then copying the data into the
    buffer malloced in msg_t::init_size, the raw_decoder allocates the memory
    for together with the reference-counter and creates a msg_t object
    on top of that memory. This saves the memcpy operation.
    
    For small messages, data is still copied and the receive buffer is reused.
    36797936
Name
Last commit
Last update
builds Loading commit data...
doc Loading commit data...
include Loading commit data...
packaging/nuget Loading commit data...
perf Loading commit data...
src Loading commit data...
tests Loading commit data...
tools Loading commit data...
tweetnacl Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
CMakeLists.txt Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
Dockerfile Loading commit data...
INSTALL Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README.cygwin.md Loading commit data...
README.md Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
branding.bmp Loading commit data...
ci_build.sh Loading commit data...
configure.ac Loading commit data...
installer.ico Loading commit data...
version.sh Loading commit data...