Repository navigation
Read pHash entries once per matching run and compare them together - #323
Merged
Merged
Conversation
Matching read every perceptual-hash entry again for each file with no exact hit and compared them one at a time, so a run cost files x entries. On a 16,000-file case with 10,000 pHash entries it took 189.3 s; now 1.1 s, and 4.3 s with 100,000. Hits are the ones the old loop found: a test compares both over odd value shapes, thresholds and the Project VIC switch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Known-hash matching now reads the pHash entries once per run and compares them together, instead of re-reading and looping over all of them for every file with no exact hit.
🤖 Generated with Claude Code