mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 13:19:02 +00:00
568 B
568 B
Array C++ Helpers
This package contains helper functions for working with LongArray objects, as native C++ calls. The helpers are only built on Linux, and if they are absent, Java substitutes should be used instead.
Note that the C++ helpers are compiled with march=native, so they are not portable between different CPU architectures.
This provides a speedup for some operations, especially when using MemorySegment's get methods and not Unsafe. Library loading and access is available through the NativeAlgos class.