[zeromq-dev] JNI - slow java method invocation

Pieter Hintjens ph at imatix.com
Thu Sep 3 17:02:34 CEST 2015

Interesting. We are generating bindings for CZMQ using zproject, don't
have a JNI generator yet. ... :)

You could use inproc yes, except you still need to call the libzmq API
to send/receive messages. It's probably better to look at finding the

On Thu, Sep 3, 2015 at 4:20 PM, Bachmair Florian - flexSolution GmbH
<florian.bachmair at flexsolution.eu> wrote:
> Hi!
> I have written my own JNI-Wrapper to use czmq in java.
> I have a sender which sends 10 messages every 5ms, 1000 times.
> If I view the commandline outputs of both applications I can see that,
> when the sender has finished, the receiver still needs time to pass the
> messages to java.
> I don't know how the JVM handles that, but would it be possible to use
> INPROC between C and JAVA? would that be faster than JNI calls?
> Or any other suggestions?
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list