Repository navigation
Optimize PartialRatio edge scans, multiword LCS and TokenSetRatio - #39
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ycherkes
force-pushed
the
perf/incremental-lcs-token-set
branch
from
November 28, 2026 08:29
6aa03c3 to
fcf7855
Compare
Replace CanReturnPerfectScore and ScorePrefix with one internal UsesBuiltInIndelRatio flag, and move the shared shortcut, prefix-length scoring and final comparison into TokenSetScorerHelpers.Score so the cached and uncached scorers use one implementation. Behavior is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0136UBH4NoG4664Uiz2aF6Yh
Contributor
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Correctness and validation
Performance verification
The measured library source is e60e993, before the subsequent token-set scorer refactor in e01550c. These numbers describe that measured snapshot; the later refactor was integrated and tested but not rebenchmarked.
Reran all 71 published workloads, plus three calibration controls, using BenchmarkDotNet 0.15.8, Release, .NET 10.0.15 / SDK 11.0.100, Windows 11, Intel Core Ultra 9 275HX. Sequential methods run on P-core 10; parallel extraction uses P-cores 10–13. Core classes were checked through Windows CPU Set Information. Two launches, six warmups and ten measured iterations per launch, 300 ms target, no outlier removal. Tiered compilation and dynamic PGO are disabled. This is a controlled JIT configuration, not the runtime default.
All 71 results had 99.9% confidence-interval half-widths below 5% of the mean. Tables in both READMEs now include the intervals and reproduction commands. These replace the noisy unrestricted-affinity measurements; absolute times across different JIT/affinity configurations are not a code-regression comparison.
Intervals are BenchmarkDotNet's 99.9% confidence-interval half-widths. The benchmark README includes cache/parallel variants, allocations, distance workloads, all six multiword comparisons and calibration controls. Partial-ratio algorithms and rounding differ between libraries, so equal scores are not asserted; Classic comparisons do not isolate the mask-lookup change alone. Generated reports remain ignored.
Bump the package version to 6.0.3, with assembly/file version 6.0.3.0. NuGet and symbol packages build successfully for all 12 targets. No public API changes.