Skip to content

perf: preallocate Words string buffer#728

Merged
samber merged 4 commits intosamber:masterfrom
NathanBaulch:wordsbuffer
Nov 6, 2025
Merged

perf: preallocate Words string buffer#728
samber merged 4 commits intosamber:masterfrom
NathanBaulch:wordsbuffer

Conversation

@NathanBaulch
Copy link
Contributor

Just a minor one - the Words helper should grow the the result builder to the length of the input string.

@codecov
Copy link

codecov bot commented Nov 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.22%. Comparing base (417eba1) to head (4027824).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #728      +/-   ##
==========================================
+ Coverage   94.18%   94.22%   +0.03%     
==========================================
  Files          18       18              
  Lines        2805     2806       +1     
==========================================
+ Hits         2642     2644       +2     
+ Misses        149      148       -1     
  Partials       14       14              
Flag Coverage Δ
unittests 94.22% <100.00%> (+0.03%) ⬆️

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.

frankywahl and others added 3 commits November 6, 2025 07:44
This will ignore the ordering of the final intersection. Especially
important when checking old versions of go that do not guarantee an order
when iterating through maps.
@samber samber merged commit 4e2c33e into samber:master Nov 6, 2025
11 checks passed
@NathanBaulch NathanBaulch deleted the wordsbuffer branch November 6, 2025 19:52
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.

3 participants