lukeed/tidyPublic

perf: reuse the output buffer

Formatter::format now prints into a buffer it keeps and returns a
borrow of it, like its other buffers. A new String per file faulted
in fresh pages for every output.
LELuke Edwards authored
04b84d5Patch
Parent552d331
4 files changed+27-14
StackedSplit
crates/tidyrs/examples/doc.rs+1 โˆ’1
crates/tidyrs/src/doc/print.rs+5 โˆ’3
crates/tidyrs/src/html/mod.rs+12 โˆ’7
crates/tidyrs_cli/src/main.rs+9 โˆ’3