Question: ByteBuffer vs MemorySegment for binary (de)serializiation and in-memory buffer pool
Gavin Ray
ray.gavin97 at gmail.com
Sat Aug 20 17:35:15 UTC 2022
Hiya, I hope it's okay that I ask questions here (if not, please direct me
elsewhere)
I tried to ask on StackOverflow without much luck, and there aren't many
resources
available at the moment to read about the Foreign Memory API so I'm
reaching out here.
I'm implementing a basic database on the JVM and am trying to understand the
technical implications of using either ByteBuffer or MemorySegment for heap
page management and in-memory buffer allocation.
Details are in this thread:
database - Java: Performance of ByteBuffer versus jdk.incubator.foreign
(Panama) Foreign Memory methods (MemoryLayout/Segment) - Stack Overflow
<https://stackoverflow.com/questions/73423726/java-performance-of-bytebuffer-versus-jdk-incubator-foreign-panama-foreign-me>
Would appreciate any information folks would be willing to share =)
Thank you,
Gavin Ray
(By the way, I'm not subscribed to the mailing list, will I be able to
reply to responses?)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20220820/7661b4dd/attachment-0001.htm>
More information about the panama-dev
mailing list