This issue has been filed to give consideration to the possibility of adding more off-heap vector scorers.
We recently added a MemorySegment Vector scorer for scoring byte vectors without copying on-heap - scorer loads values directly from the backing memory segment when available. Benchmarks show an approx 2x performance improvement by avoiding copying the vector data on-heap.
This issue has been filed to give consideration to the possibility of adding more off-heap vector scorers.
We recently added a MemorySegment Vector scorer for scoring byte vectors without copying on-heap - scorer loads values directly from the backing memory segment when available. Benchmarks show an approx 2x performance improvement by avoiding copying the vector data on-heap.
Floats
Loading vector data from float[] (the fallback), is only supported in JDK 22 - which might be fine. See https://bugs.openjdk.org/browse/JDK-8318678
Scalar quantized
Each of the possible quantized vector element sizes can be evaluated separately.
relates #13339