RFR: 8352536: Add overloads to parse and build class files from/to MemorySegment [v4]

David M. Lloyd duke at openjdk.org
Thu Mar 27 17:02:08 UTC 2025


On Thu, 27 Mar 2025 16:01:59 GMT, Adam Sotona <asotona at openjdk.org> wrote:

> As the parsing benefits are none due to the memory copy.

The main benefit on the parsing is twofold: reducing the user's boilerplate, and the future possibility of further optimizing this case. At present the performance is the same as making the user do the copy.

> May I see at least the benefits of direct writing to memory mapped files on some benchmark?

Sure, I can put together a benchmark which compares the throughput with and without the copy and maybe also compares the allocation rate. I hope that would be sufficient to capture whatever there is to capture.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24139#issuecomment-2758778988


More information about the core-libs-dev mailing list