Open
Description
K/N provides several extension functions allowing to read and write multi-byte primitive types from and to ByteArrays
.
For example, for Long
there are ByteArray.getLongAt and ByteArray.setLongAt functions.
When used, these functions should slightly boost the performance on Native, at least because they reduce the number of bound checks.
On MacOS/Arm64, use of these functions showed 10% performance improvement for LongBenchmark
.