Is it possible to copy from native memory to a ByteBuffer using the new FFM API without producing temp objects?
We have an open-source project using sun.misc.Unsafe
that we are migrating to the new Foreign Function & Memory (FFM) API. For our particular use-case (low-latency trading systems) it is important not to create any garbage (temp discarded instances) when receiving a message as these systems handle hundreds of thousands of messages per second.
Is it possible to copy from native memory to a ByteBuffer using the new FFM API without producing temp objects?
We have an open-source project using sun.misc.Unsafe
that we are migrating to the new Foreign Function & Memory (FFM) API. For our particular use-case (low-latency trading systems) it is important not to create any garbage (temp discarded instances) when receiving a message as these systems handle hundreds of thousands of messages per second.
Is it possible to copy from native memory to a ByteBuffer using the new FFM API without producing temp objects?
We have an open-source project using sun.misc.Unsafe
that we are migrating to the new Foreign Function & Memory (FFM) API. For our particular use-case (low-latency trading systems) it is important not to create any garbage (temp discarded instances) when receiving a message as these systems handle hundreds of thousands of messages per second.