Skip to content

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

Merged
sylvestre merged 11 commits intouutils:mainfrom
zhitkoff:wc-proc
Dec 7, 2023
Merged

wc: pass GNU test wc-proc and Windows optimization#5612
sylvestre merged 11 commits intouutils:mainfrom
zhitkoff:wc-proc

Conversation

@zhitkoff
Copy link
Copy Markdown
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

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 2, 2023

GNU testsuite comparison:

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

@github-actions
Copy link
Copy Markdown

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
Copy Markdown
Contributor

Nice, did you do some benchmarking on windows? thanks

@zhitkoff
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

zhitkoff commented Dec 5, 2023

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

@github-actions
Copy link
Copy Markdown

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>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 7, 2023

GNU testsuite comparison:

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

@zhitkoff zhitkoff requested a review from sylvestre December 7, 2023 18:12
@sylvestre sylvestre merged commit f882092 into uutils:main Dec 7, 2023
@sylvestre
Copy link
Copy Markdown
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.

2 participants