On Thu, 27 Mar 2025 17:38:49 GMT, David M. Lloyd <d...@openjdk.org> wrote:
>> Provide method overloads to the ClassFile interface of the >> java.lang.classfile API which allow parsing of classes found in memory >> segments, as well as allowing built class files to be output to them. > > David M. Lloyd has updated the pull request incrementally with one additional > commit since the last revision: > > Add a benchmark for class file emission If we want to reduce allocation at writing time, we may well look at the new allocation facility from #24232; that is a general-utility tool to reduce allocation pressure for large byte arrays, especially if an actual `byte[]` view is not strictly required. BufWriter and the allocation-free copying of data to a memory segment may benefit. ------------- PR Comment: https://git.openjdk.org/jdk/pull/24139#issuecomment-2762844063