Improve the handling of regular expressions#201
Merged
sylvestre merged 2 commits intouutils:mainfrom Dec 16, 2025
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #201 +/- ##
==========================================
- Coverage 82.31% 82.14% -0.17%
==========================================
Files 13 13
Lines 5371 5322 -49
Branches 293 293
==========================================
- Hits 4421 4372 -49
Misses 948 948
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
f549f6f to
b14975b
Compare
CodSpeed Performance ReportMerging #201 will degrade performances by 10.99%Comparing Summary
Benchmarks breakdown
|
It's difficult to make quoting work reliably and portably with the Windows shell, so in most casesEsupply sed commands as files.
Keep using regex_fancy for regexes containing backreferences.
This removes a complex unneeded matcher selection RE and also
provides an overall small performance boost.
access-log-no-del pre-use-bytes is 1.02 times faster than use-re-bytes
access-log-all-del use-re-bytes is 1.02 times faster than pre-use-bytes
access-log-translit pre-use-bytes is similarly fast as use-re-bytes
access-log-complex-sub pre-use-bytes is similarly fast as use-re-bytes
access-log-append pre-use-bytes is similarly fast as use-re-bytes
remove-cr use-re-bytes is 1.08 times faster than pre-use-bytes
genome-subst use-re-bytes is 1.05 times faster than pre-use-bytes
number-fix pre-use-bytes is 1.02 times faster than use-re-bytes
long-script use-re-bytes is 1.01 times faster than pre-use-bytes
hanoi pre-use-bytes is similarly fast as use-re-bytes
factorial use-re-bytes is 1.03 times faster than pre-use-bytes
Suggested by: Andrew Gallant @BurntSushi
b14975b to
11f235d
Compare
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.
No description provided.