[codex] Reuse scalar subset rerank LUT scratch#250
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Code Review
This pull request makes the scalar fallback path for subset reranking allocation-free by reusing a pre-allocated LUT buffer in SubsetScratch, matching the behavior of the SIMD path. Documentation and tests are updated to reflect that both paths are now allocation-free after warmup. The review feedback suggests using chunks_exact_mut in build_asym_lut_into and build_b8_asym_lut_into to avoid manual indexing and eliminate bounds checks, making the code more idiomatic and potentially more performant.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
d916ca8 to
f1cd40e
Compare
Signed-off-by: Nelson Spence <nelson@projectnavi.ai>
f1cd40e to
a909ad5
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
PR Summary by QodoReuse scalar subset rerank LUT scratch to make rerank allocation-free Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo
Context used 1.
|
|
/agentic_review |
1e74798 to
020882f
Compare
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 020882f |
020882f to
7d492ea
Compare
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 7d492ea |
Signed-off-by: Nelson Spence <nelson@projectnavi.ai>
7d492ea to
5fd5c7e
Compare
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 5fd5c7e |
Summary
Closes #235.
Validation
cargo fmt --checkcargo test --features test-utils --test alloc_free -- --nocapturecargo test --features test-utils --test index batched_subset_rerank_matches_scalar_reference_across_tiers -- --nocapturecargo test --features test-utils --test index batched_into_is_allocation_free_after_warmup -- --nocapturecargo test --test index quant_b8 -- --nocapturecargo checkgit diff --check