Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
rustix = { version = "1.1.4", default-features = false }
self_cell = "1.0.4"
selinux = "0.6"
simdutf8 = "0.1.5"

Check warning on line 122 in Cargo.toml

View workflow job for this annotation

GitHub Actions / Style/spelling (ubuntu-latest, feat_os_unix)

WARNING: `cspell`: Unknown word 'simdutf' (file:'Cargo.toml', line:122)
tempfile = "3.15.0"
terminal_size = "0.4.0"
textwrap = { version = "0.16.1", features = ["terminal_size"] }
Expand Down
7 changes: 7 additions & 0 deletions fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions src/uu/wc/BENCHMARKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@

### Counting lines and UTF-8 characters

If the flags set are a subset of `-clm` then the input doesn't have to be decoded. The
input is read in chunks and the `bytecount` crate is used to count the newlines (`-l` flag)
and/or UTF-8 characters (`-m` flag).
If the flags set are a subset of `-clm`, the input is read in chunks and the
`bytecount` crate is used to count newlines (`-l`) and UTF-8 characters (`-m`).
In UTF-8 locales, character counting validates the input with `simdutf8` when SIMD

Check warning on line 32 in src/uu/wc/BENCHMARKING.md

View workflow job for this annotation

GitHub Actions / Style/spelling (ubuntu-latest, feat_os_unix)

WARNING: `cspell`: Unknown word 'simdutf' (file:'src/uu/wc/BENCHMARKING.md', line:32)
is enabled, skips malformed sequences, and carries partial characters between
reads. ASCII chunks are counted by length.

It's useful to vary the line length in the input. GNU wc seems particularly
bad at short lines.
Expand Down
1 change: 1 addition & 0 deletions src/uu/wc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
bytecount = { workspace = true, features = ["runtime-dispatch-simd"] }
clap = { workspace = true }
fluent = { workspace = true }
simdutf8 = { workspace = true }

Check warning on line 23 in src/uu/wc/Cargo.toml

View workflow job for this annotation

GitHub Actions / Style/spelling (ubuntu-latest, feat_os_unix)

WARNING: `cspell`: Unknown word 'simdutf' (file:'src/uu/wc/Cargo.toml', line:23)
thiserror = { workspace = true }
unicode-width = { workspace = true }
uucore = { workspace = true, features = [
Expand Down
Loading
Loading