lukeed/tidyPublic

perf: cheaper widths and names

Measures non-ASCII text in one pass without allocating, looking ahead
only where an emoji can start, and checks an attribute's name before
unescaping its value. Searches use memchr. Pages on one thread: 82 to
about 70 ms.
LELuke Edwards authored
8b9eb93Patch
Parent3fad9ef
8 files changed+63-27
StackedSplit
Cargo.lock+1 −0
crates/tidyrs/Cargo.toml+1 −0
crates/tidyrs/src/doc/width.rs+44 −18
crates/tidyrs/src/html/embed.rs+7 −1
crates/tidyrs/src/html/print.rs+3 −0
crates/tidyrs/src/html/strings.rs+3 −6
crates/tidyrs/src/html/utilities.rs+3 −1
tests/oracle/doc.ts+1 −1