lukeed/tidyPublic

perf: measure widths and URLs once

Table cells were measured twice, through unicode-width's tables, which
showed up as about 2% of formatting time. They are now measured once,
and printable ASCII skips the tables. Link destinations are checked in
one pass over their bytes instead of five. Formatting alone is about
5% faster than before the list survey.
LELuke Edwards authored
1e12210Patch
Parent80f3836
6 files changed+59-31
StackedSplit
crates/tidy/src/markdown/mod.rs+1 −0
crates/tidy/src/markdown/table.rs+15 −14
crates/tidy/src/markdown/width.rs+18 −0
crates/tidy/src/markdown/wrap.rs+2 −4
crates/tidy/src/markdown/writer/footnote.rs+2 −2
crates/tidy/src/markdown/writer/inline.rs+21 −11