Skip to content

Conversation

vtrifonov
Copy link
Contributor

Related to #1060

Now we support indirect ByteBuffers, however they are slower as we are copying the buffer content to the result array.

@darind darind self-requested a review May 18, 2018 12:54
@vtrifonov vtrifonov merged commit d9ddf2d into master May 18, 2018
@vtrifonov vtrifonov deleted the trifonov/indirect-bytebuffer branch May 18, 2018 15:02
@andy-maca
Copy link

@vtrifonov Thanks for the quick fix, but I want to know any possibility to reuse the reference of the byte array without memory copy,like the direct byte buffer? This could be more faster.

@vtrifonov
Copy link
Contributor Author

@andy-maca I don't think it's possible to reuse the reference of an indirect ByteBuffer. In JNI you can only get the address of a direct buffer with GetDirectBufferAddress.

@andy-maca
Copy link

Ok, fine, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants