lukeed/tidyPublic

perf: check __proto__ cheaply

The check that __proto__ is a key at most once copied every string
key to read its escapes. Only a key with a backslash needs that; the
rest are compared as written. A config file now parses in 1.4 µs
instead of 3.8.
LELuke Edwards authored
d543281Patch
Parente7ef559
1 file changed+12-6
StackedSplit
crates/tidy/src/json/parse.rs+12 −6