Skip to content

Add bounded exhaustive gap-block top-K and threshold counts - #3

Merged
mikessh merged 2 commits into
devfrom
feature/gapblock-topk
Oct 9, 2026
Merged

mikessh merged 2 commits into
devfrom
feature/gapblock-topk

Conversation

@mikessh

@mikessh mikessh commented Oct 9, 2026

Copy link
Copy Markdown
Member

Exhaustive gap-block ranking currently requires a dense query-by-reference matrix, while trie top-hit search first collects the whole edit ball. Add native batched top-K heaps and cumulative threshold counts over the existing gap-block scorer, including generic linked two-view rows and a batched reference accessor. Ranking retains stable score/reference-ID ties; exact exclusion happens before selection.

Verification: 173 focused Python tests covering exhaustive matrix/prior oracles, thread equality, empty/invalid inputs, score bounds and paired exclusion; Sphinx zero warnings. A bounded synthetic probe produces identical outputs with one/four threads and stays below 40 MB process-tree RSS. Candidate version 1.0.2 is prepared; no tag or publication.

mikessh and others added 2 commits October 9, 2026 15:44
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
@mikessh
mikessh merged commit 2a86bd0 into dev Oct 9, 2026
9 checks passed
@mikessh
mikessh deleted the feature/gapblock-topk branch October 11, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant