[zeromq-dev] Does ZeroMQ pay a lot in terms of marshalling compared to akka and clojure.core.async?
Tony Arcieri
bascule at gmail.com
Fri Oct 11 06:46:43 CEST 2013
On Thu, Oct 10, 2013 at 8:56 PM, Bennie Kloosteman <bklooste at gmail.com>wrote:
> Yes compared to native langauges all GC languages incur extra IO costs
> eg When writing both languages they need to read/copy the data to the
> kernel , but the GC language needs to tell the GC to pin each buffer so it
> doesnt reloccate it ,this can be significant for lots of small packets.
>
This isn't true at all. I suggest you look into JVM features like direct
buffers and pay particular attention to LMAX disruptor. It's possible to
keep all buffers off the GC-managed heap and build applications that
completely preallocate all memory they use even when running on the JVM so
they have zero allocation load or garbage collection.
--
Tony Arcieri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131010/6c2f137d/attachment.htm>
More information about the zeromq-dev
mailing list