Skip to content

Update Dictionary.optimisticFilter for small dictionaries - #1037

Merged
Kyle-Ye merged 1 commit into
mainfrom
optimize/filter
Sep 3, 2026
Merged

Kyle-Ye merged 1 commit into
mainfrom
optimize/filter

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Sep 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Reuse predicate results with a BitVector64 for dictionaries containing up to 64 entries.
  • Return early when every element is accepted or rejected, and delegate larger dictionaries to standard filter.
  • Cover empty, homogeneous, mixed, highest-bit, and 64/65-element boundary cases with focused tests.

@tuist

tuist Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

🛠️ Tuist Run Report 🛠️

Tests 🧪

Scheme Status Cache hit rate Tests Skipped Ran Commit
OpenSwiftUI ✅ 0 % 82 0 82 a2d0e6e45

Builds 🔨

Scheme Status Duration Commit
OpenSwiftUI ✅ 1m 8s a2d0e6e45

@Kyle-Ye
Kyle-Ye merged commit 36aa2e1 into main Sep 3, 2026
3 of 8 checks passed
@Kyle-Ye
Kyle-Ye deleted the optimize/filter branch September 3, 2026 18:10
@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.23%. Comparing base (e9ea58d) to head (83a16ab).
⚠️ Report is 1 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (e9ea58d) and HEAD (83a16ab). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (e9ea58d) HEAD (83a16ab)
2 1
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1037       +/-   ##
===========================================
- Coverage   29.24%   17.23%   -12.01%     
===========================================
  Files         782      734       -48     
  Lines       61959    54130     -7829     
===========================================
- Hits        18119     9331     -8788     
- Misses      43840    44799      +959     

☔ View full report in Codecov by Harness.
📢 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.

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