StringZilla icon indicating copy to clipboard operation
StringZilla copied to clipboard

The wc cli has been fixed up

Open MarkReedZ opened this issue 1 year ago • 2 comments

In the wc cli I fixed up a couple bugs, added the files from arg, justified the output to match wc, and sped up the longest line search.

ref https://github.com/ashvardanian/StringZilla/issues/97

$ time python ../StringZilla/cli/wc.py -L  --files0-from delme
        67 sz.js
     51648 enwik9.txt
        67 sz.js
       102 tst.js
     51884 total

real	0m1.184s
user	0m1.080s
sys	0m0.104s

$ time wc -L --files0-from delme
        67 sz.js
     51648 enwik9.txt
        67 sz.js
       102 tst.js
wc: ''$'\n': No such file or directory
     51648 total

real	0m4.327s
user	0m4.184s
sys	0m0.142s

MarkReedZ avatar May 15 '24 00:05 MarkReedZ

Does this relate to #139 in any way? cc @lborcard

ashvardanian avatar May 15 '24 01:05 ashvardanian

No, haven't looked at split yet. I'm guessing for 139 he ran out of space. We can update the split code to print a better error message.

MarkReedZ avatar May 15 '24 05:05 MarkReedZ