Thanks for share.
I'm implement a loc cli program, after wrap file.reader() inside bufferedReader, sys time dropped from 0m1.944s to 0m0.055s
time ./zig-out/bin/loc ~/code/rust-analyzer/ Language Files Lines Code Comment Blank ---------- ----- ------ ------ ------- ----- Rust 1053 267266 221082 20476 25708 Markdown 15 4119 2979 3 1137 HTML 14 1247 1108 0 139 JavaScript 2 184 160 9 15 real 0m2.918s user 0m0.863s sys 0m1.944s
time ./zig-out/bin/loc ~/code/rust-analyzer/ Language Files Lines Code Comment Blank ---------- ----- ------ ------ ------- ----- Rust 1053 267266 221082 20476 25708 Markdown 15 4119 2979 3 1137 HTML 14 1247 1108 0 139 JavaScript 2 184 160 9 15 real 0m0.719s user 0m0.119s sys 0m0.055s
Will open source this cli after some tidy-up
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
Take off every Zig!
Thanks for share.
I'm implement a loc cli program, after wrap file.reader() inside bufferedReader, sys time dropped from 0m1.944s to 0m0.055s
Before
After
Will open source this cli after some tidy-up