-
Notifications
You must be signed in to change notification settings - Fork 11
Improve command range handling #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
a few tests are failing :) |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #267 +/- ##
==========================================
- Coverage 82.11% 82.03% -0.08%
==========================================
Files 13 13
Lines 5327 5423 +96
Branches 294 291 -3
==========================================
+ Hits 4374 4449 +75
- Misses 951 972 +21
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:
|
|
GNU sed testsuite comparison: |
|
On it. |
8ad52fb to
2bf6a94
Compare
|
GNU sed testsuite comparison: |
|
@sylvestre I fixed the issue. |
|
GNU sed testsuite comparison: |
|
GNU sed testsuite comparison: |
Merging this PR will degrade performance by 3.47%
Performance Changes
Comparing |
|
GNU sed testsuite comparison: |
Before this commit, the output of sed was lagging one line behind, as it was always checking whether each line was the last one ($). This change modifies the behavior to make this check only when actually needed. This brings sed's interactive behavior (when reading from a terminal) in line with the GNU and FreeBSD implementations.
This is a GNU extension that starts the range as latched. While at it, also fix the handling of ranges straddling independent files.
This removes invalid states and simplifies pattern matching. It also makes it easier to add further address extensions.
|
GNU sed testsuite comparison: |
1 similar comment
|
GNU sed testsuite comparison: |
|
GNU sed testsuite comparison: |
|
@sylvestre This PR is now ready for review. I don't have anything related to add to it. Will work on further GNU compatibility improvements once this gets merged. |
Before this commit, the output of sed was lagging one line behind, as it was always checking whether each line was the last one ($). This change modifies the behavior to perform this check only when actually needed. This brings sed's interactive behavior (when reading from a terminal) in line with the GNU and FreeBSD implementations.
In addition this PR adds support for the GNU address 0 extension and for ~step ranges. To support this it refactors the address representation.