Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ByteArray.set<Type>At and get<Type>At to read/write from Segments on Native #378

Open
fzhinkin opened this issue Aug 27, 2024 · 0 comments

Comments

@fzhinkin
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant