Skip to content

perf: optimize PartitionBy by eliminating redundant append#765

Merged
samber merged 1 commit intosamber:masterfrom
d-enk:refactor-partition-by
Jan 12, 2026
Merged

perf: optimize PartitionBy by eliminating redundant append#765
samber merged 1 commit intosamber:masterfrom
d-enk:refactor-partition-by

Conversation

@d-enk
Copy link
Contributor

@d-enk d-enk commented Jan 12, 2026

New groups are now initialized with the first element directly, avoiding an extra append operation in the hot loop.

Use a one style for lo/it/parallel

@codecov
Copy link

codecov bot commented Jan 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.20%. Comparing base (eb9719c) to head (39c660a).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #765   +/-   ##
=======================================
  Coverage   94.20%   94.20%           
=======================================
  Files          18       18           
  Lines        2880     2880           
=======================================
  Hits         2713     2713           
  Misses        151      151           
  Partials       16       16           
Flag Coverage Δ
unittests 94.20% <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.

New groups are now initialized with the first element directly,
avoiding an extra append operation in the hot loop.

Use a one style for lo/it/parallel
@d-enk d-enk force-pushed the refactor-partition-by branch from 7f0b122 to 39c660a Compare January 12, 2026 18:54
@d-enk d-enk changed the title perf: optimize PartitionBy by eliminating redundant append perf: optimize PartitionBy by eliminating redundant append Jan 12, 2026
@samber samber merged commit 7a0a18b into samber:master Jan 12, 2026
11 checks passed
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