[k-NN] Avoid additional copy to stream during binary doc values deserialization #1736
Labels
Enhancements
Increases software capabilities beyond original client specifications
indexing-improvements
This label should be attached to all the github issues which will help improving the indexing time.
k-NN
v2.16.0
Description
Related #1709
During deserialization, we have an intermediate step where we copy a bytesref to a bytesstream. This can be removed as it adds some overhead and does add any benefit. With #1087, this will be no longer necessary. But until then, it could add some benefit.
From the experiments in #1709 , the diff with and without the optimization is:
Results - w/o change
Results - w/ change
PoC commit: jmazanec15@7984618.
The text was updated successfully, but these errors were encountered: