Closed jmazanec15 closed 2 months ago
This intermediate step of copy byteref to bytestream is also present when we read vectors during merge. Hence marking this issue as indexing-improvements too.
@jmazanec15 can we close this GH issue as the feature is added in k-NN plugin,
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: https://github.com/jmazanec15/k-NN-1/commit/7984618de9369228af388148d023475b0c58c061.