jvector icon indicating copy to clipboard operation
jvector copied to clipboard

Consider allowing reuse of vector object in View.getVector

Open jkni opened this issue 1 year ago • 1 comments

The View interface returns a unique object for every call to getVector, but the object returned by getNeighborsIterator is only guaranteed to be usable until the next call to getNeighborsIterator. If we put getVector under the same constract, we may be able to optimize the implementation for some readers and reduce object allocation.

jkni avatar Feb 16 '24 23:02 jkni

(low priority imo b/c the reranker only calls getVectorInto and not getVector)

jbellis avatar Apr 03 '24 20:04 jbellis