yandrey321 commented on PR #10438: URL: https://github.com/apache/ozone/pull/10438#issuecomment-4661954338
> > Its around ~0.5-1% on the real system, in microbenchmark it shows ~7% better throughput. ... > > @yandrey321 , Please post the actual numbers and how to reproduce it. Thanks. > > > In Java, we usually don't care about (short live) object allocations. Otherwise, all the classes such as String, Integer, etc cannot be used. > > BTW, ByteBuffer.warp here is very similar to Java auto-boxing for primitive types; see https://docs.oracle.com/javase/tutorial/java/data/autoboxing.html I added benchmark test (that can be run on demand) and updated description with results of test run on my mac (ARM cpu). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
