Skip to content

checkduplicates unit test revamp - #20

Merged
TabulateJarl8 merged 4 commits into
masterfrom
checkduplicates-revamp
Feb 4, 2026
Merged

TabulateJarl8 merged 4 commits into
masterfrom
checkduplicates-revamp

Conversation

@TabulateJarl8

@TabulateJarl8 TabulateJarl8 commented Feb 4, 2026 •

Copy link
Copy Markdown
Owner

Made the checkduplicates test run insanely faster. On my desktop it was doing around 28M comparisons and taking about 20s, which isn't terrible, but I've found that Dice-Sorensen is both much faster on hashed token sets (since its just integers) and much more accurate for similarity comparison. This ran in about 230ms on my desktop.

I've also removed duplicate facts because of this

@codecov-commenter

codecov-commenter commented Feb 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2df8005) to head (d66aa63).

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #20   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           45        45           
=========================================
  Hits            45        45           
Flag Coverage Δ
python-3.10 100.00% <ø> (ø)
python-3.11 100.00% <ø> (ø)
python-3.12 100.00% <ø> (ø)
python-3.13 100.00% <ø> (ø)
python-3.14 100.00% <ø> (ø)
python-3.6 97.77% <ø> (ø)
python-3.7 97.77% <ø> (ø)
python-3.8 100.00% <ø> (ø)
python-3.9 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TabulateJarl8
TabulateJarl8 merged commit 2cc0e4e into master Feb 4, 2026
11 checks passed
@TabulateJarl8
TabulateJarl8 deleted the checkduplicates-revamp branch February 4, 2026 06:33
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.

2 participants