-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
head: rework handling of non-seekable files #7438
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
Conversation
|
GNU testsuite comparison: |
7de319d to
1af6e51
Compare
|
GNU testsuite comparison: |
Can you attach a benchmark to show the improvement ? |
|
GNU testsuite comparison: |
1af6e51 to
29a957b
Compare
The performance improvements are seen when the input comes in via a pipe. Comparing current Also should note though that I want to add a bit more test code before anyone reviews these changes. Give me another day or so please :) |
1e2de83 to
ebbac05
Compare
|
GNU testsuite comparison: |
ebbac05 to
eb8c009
Compare
|
GNU testsuite comparison: |
|
In addition to the main changes here, I also made a few changes to add/remove buffering (
So, no regressions, some reasonable improvements (~15%) for the If there are any other usecases people think I should run then please let me know. |
eb8c009 to
6a65378
Compare
|
GNU testsuite comparison: |
6a65378 to
6c8c2ff
Compare
|
GNU testsuite comparison: |
Fix issue uutils#7372 Rework logic for handling all-but-last-lines and all-but-last-bytes for non-seekable files. Changes give large performance improvement.
6c8c2ff to
2987531
Compare
|
GNU testsuite comparison: |
RenjiSann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appart from the typo. this looks good ^^
It's nice to see such performance improvement 🚀
Co-authored-by: Dorian Péron <72708393+RenjiSann@users.noreply.github.com>
Thanks for the review! |
|
GNU testsuite comparison: |
Rework logic for handling all-but-last-lines and all-but-last-bytes for non-seekable files. Changes give large performance improvement.