Re: [zeromq-dev] ByteBuffer API for JZMQ

2013-05-14 Thread Joel Lauener
. I'm already looking forward to performance measurement. This looks interesting. Message: 3 Date: Mon, 13 May 2013 13:58:32 -0300 From: Trevor Bernard trevor.bern...@gmail.com Subject: [zeromq-dev] ByteBuffer API for JZMQ To: ZeroMQ development list zeromq-dev@lists.zeromq.org Message-ID

Re: [zeromq-dev] ByteBuffer API for JZMQ

2013-05-14 Thread Trevor Bernard
13, 2013 12:59 PM *To:* ZeroMQ development list *Subject:* [zeromq-dev] ByteBuffer API for JZMQ ** ** In the next couple of days I will be writing a ByteByffer API for JZMQ I would like to hear the communities thoughts. ** ** I was thinking of something along the lines

Re: [zeromq-dev] ByteBuffer API for JZMQ

2013-05-14 Thread Trevor Bernard
What is the purpose of int recvByteBuffer(int flags) ? Oops, typo. The return type should be ByteBuffer. You can create a direct bytebuffer with NewDirectByteBuffer. Will this be a true 0 copy implementation? Or will the buffer still be copied within the send/receive call? The buffer will

Re: [zeromq-dev] ByteBuffer API for JZMQ

2013-05-14 Thread Trevor Bernard
For anyone interested, I added support for ByteBuffer's in my fork: https://github.com/trevorbernard/jzmq/tree/bytebuffer-api I wrote a couple simple unit tests that pass. I still have a couple of house keeping tasks left to program but for all intents and purposes, it's done. -Trev On Tue,

Re: [zeromq-dev] ByteBuffer API for JZMQ

2013-05-13 Thread Yu Dongmin
Hi, I'm basically agree to have bytebuffer API. JZMQ application would have more options for their purpose. And it would be excellent if we have a benchmark result using bytebuffer compared to byte[]. Thanks Min On May 13, 2013, at 9:58 AM, Trevor Bernard trevor.bern...@gmail.com wrote:

Re: [zeromq-dev] ByteBuffer API for JZMQ

2013-05-13 Thread Parag Patel
-boun...@lists.zeromq.org [mailto:zeromq-dev-boun...@lists.zeromq.org] On Behalf Of Trevor Bernard Sent: Monday, May 13, 2013 12:59 PM To: ZeroMQ development list Subject: [zeromq-dev] ByteBuffer API for JZMQ In the next couple of days I will be writing a ByteByffer API for JZMQ I would like