You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimizations for Python bindings and sum_of_squares (#102)
This PR has two small optimizations:
* Passes `indices` and `ids` by reference rather than by value in `module.cc`. This seems to give a rather substantial speedup for Python ivf query times.
* Removes explicit casts to `float` in `sum_of_squares`. This gives a 30% speedup (tested on EC2 r6id.2xlarge).
0 commit comments