r/java •

[deleted by user]

[deleted] — view deleted post

0 Upvotes

594 comments sorted by

View all comments

Show parent comment

3

u/koflerdavid Jun 12 '24

This sounds like there are lots of optimization opportunities in that API. Although part of the problem might be that any data has to be copied to the heap to be accessible for Java code. ByteBuffers can provide limited access to off-heap memory, but retrieving data through these is equivalent to copying data around.