Skip to content

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

Open
@fzhinkin

Description

@fzhinkin

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions