lukeed/tidyPublic

perf: propagate breaks as docs are made

A doc knows whether it breaks the group around it when it is made, so
the printer no longer walks every doc first for propagateBreaks. The
children of an element build on one shared stack instead of six
vectors each, and short needles skip memmem's searcher setup.

Pages on one thread: 64 to 59 ms. TIDYRS_STATS prints the time of each
phase.
LELuke Edwards authored
9886cb8Patch
Parent271c770
5 files changed+164-152
StackedSplit
crates/tidyrs/src/doc/mod.rs+35 −61
crates/tidyrs/src/doc/print.rs+20 −10
crates/tidyrs/src/html/mod.rs+15 −7
crates/tidyrs/src/html/print.rs+80 −73
crates/tidyrs/src/html/strings.rs+14 −1