lukeed/tidyPublic

perf: allocate less in YAML

The parser no longer copies the last item of a collection for each
token, the transforms read props from the tokens themselves, nodes
get their parent as they are added, the printer borrows nodes and
words, and a one-line scalar prints without word lists. On 435
files, one thread goes from 102 to 72 ms, and all threads from 46
to 34 ms.
LELuke Edwards authored
fbbbc68Patch
Parentb3f2473
6 files changed+199-176
StackedSplit
crates/tidy/src/yaml/ast.rs+25 โˆ’6
crates/tidy/src/yaml/attach.rs+4 โˆ’21
crates/tidy/src/yaml/cst.rs+50 โˆ’18
crates/tidy/src/yaml/print.rs+67 โˆ’55
crates/tidy/src/yaml/transform.rs+49 โˆ’73
tests/oracle/yaml/src/main.rs+4 โˆ’3