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
refactor[turboquant]: simplify code from review findings
- Consolidate encode_decode_mse and encode_decode_qjl test helpers into
a single closure-parameterized encode_decode function
- Replace 14 copy-pasted benchmark functions (~200 lines) with a
turboquant_bench! macro (~40 lines)
- Extract QJL correction scale factor to a named function with doc
comment explaining the derivation
- Precompute centroid decision boundaries (midpoints) once before the
row loop, replacing per-coordinate distance comparisons with a single
partition_point lookup. This removes two abs() calls and a branch
from the innermost quantization loop.
Net: -150 lines.
Signed-off-by: Will Manning <will@spiraldb.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Will Manning <will@willmanning.io>
0 commit comments