I know that the bottleneck is the invocation of the java method from C. If I remove that I see that all mesages are received in Time in my C class. My java method is empty for testing purposes, so there is no long calculations on java side at the moment.
Am 04.09.2015 um 09:18 schrieb Bachmair Florian - flexSolution GmbH: > because I need curve security... > > Am 04.09.2015 um 09:16 schrieb [email protected]: >> Why not use jzmq? >> >> https://github.com/zeromq/jzmq >> >> I agree, look at finding the bottleneck as I don't think inproc will be >> faster than JNI >> >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On Behalf Of Pieter Hintjens >> Sent: 03 September 2015 16:03 >> To: ZeroMQ development list >> Subject: Re: [zeromq-dev] JNI - slow java method invocation >> >> 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 >> bottleneck. >> >> On Thu, Sep 3, 2015 at 4:20 PM, Bachmair Florian - flexSolution GmbH >> <[email protected]> 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 >>> [email protected] >>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >> _______________________________________________ >> zeromq-dev mailing list >> [email protected] >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >> Visit our website at http://www.ubs.com >> >> This message contains confidential information and is intended only >> for the individual named. If you are not the named addressee you >> should not disseminate, distribute or copy this e-mail. Please >> notify the sender immediately by e-mail if you have received this >> e-mail by mistake and delete this e-mail from your system. >> >> E-mails are not encrypted and cannot be guaranteed to be secure or >> error-free as information could be intercepted, corrupted, lost, >> destroyed, arrive late or incomplete, or contain viruses. The sender >> therefore does not accept liability for any errors or omissions in the >> contents of this message which arise as a result of e-mail transmission. >> If verification is required please request a hard-copy version. This >> message is provided for informational purposes and should not be >> construed as a solicitation or offer to buy or sell any securities >> or related financial instruments. >> >> UBS Limited is a company limited by shares incorporated in the United >> Kingdom registered in England and Wales with number 2035362. >> Registered Office: 1 Finsbury Avenue, London EC2M 2PP >> UBS Limited is authorised by the Prudential Regulation Authority >> and regulated by the Financial Conduct Authority and the Prudential >> Regulation Authority. >> >> UBS AG is a public company incorporated with limited liability in >> Switzerland domiciled in the Canton of Basel-City and the Canton of >> Zurich respectively registered at the Commercial Registry offices in >> those Cantons with new Identification No: CHE-101.329.561 as from 18 >> December 2013 (and prior to 18 December 2013 with Identification >> No: CH-270.3.004.646-4) and having respective head offices at >> Aeschenvorstadt 1, 4051 Basel and Bahnhofstrasse 45, 8001 Zurich, >> Switzerland and is authorised and regulated by the Financial Market >> Supervisory Authority in Switzerland. Registered in the United >> Kingdom as a foreign company with No: FC021146 and having a UK >> Establishment registered at Companies House, Cardiff, with >> No: BR 004507. The principal office of UK Establishment: 1 Finsbury >> Avenue, London EC2M 2PP. In the United Kingdom, UBS AG is authorised >> by the Prudential Regulation Authority and subject to regulation >> by the Financial Conduct Authority and limited regulation by the >> Prudential Regulation Authority. Details about the extent of our >> regulation by the Prudential Regulation Authority are available >> from us on request. >> >> UBS reserves the right to retain all messages. Messages are protected >> and accessed only in legally justified cases. >> _______________________________________________ >> zeromq-dev mailing list >> [email protected] >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
