Skip to content
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

wc: pass GNU test wc-proc and Windows optimization #5612

Merged
merged 11 commits into from Dec 7, 2023

Conversation

zhitkoff
Copy link
Contributor

@zhitkoff zhitkoff commented Dec 2, 2023

  1. Pass GNU test wc-proc
  2. Windows optimization : when counting bytes (wc -c) use filesystem's metadata file size instead of full file read - for regular files

Copy link

github-actions bot commented Dec 2, 2023

GNU testsuite comparison:

Congrats! The gnu test tests/wc/wc-proc is no longer failing!

Copy link

github-actions bot commented Dec 3, 2023

GNU testsuite comparison:

Congrats! The gnu test tests/wc/wc-proc is no longer failing!

@sylvestre
Copy link
Sponsor Contributor

Nice, did you do some benchmarking on windows? thanks

@zhitkoff
Copy link
Contributor Author

zhitkoff commented Dec 4, 2023

Nice, did you do some benchmarking on windows? thanks

thanks! nothing rigorous, but just compared on my Win11Pro ARM VM and on 85MB file it is about 3x faster (on the cold start and unoptimized debug build). Should be much faster on files with sizes in GBs / TBs

@zhitkoff
Copy link
Contributor Author

zhitkoff commented Dec 5, 2023

@sylvestre @tertsdiepraam would you mind looking it over? Thanks!

Copy link

github-actions bot commented Dec 7, 2023

GNU testsuite comparison:

Congrats! The gnu test tests/wc/wc-proc is no longer failing!

Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
Copy link

github-actions bot commented Dec 7, 2023

GNU testsuite comparison:

Congrats! The gnu test tests/wc/wc-proc is no longer failing!

@sylvestre sylvestre merged commit f882092 into uutils:main Dec 7, 2023
50 of 55 checks passed
@sylvestre
Copy link
Sponsor Contributor

excellent, thanks :)

@zhitkoff zhitkoff deleted the wc-proc branch February 9, 2024 16:11
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.

None yet

2 participants