Killing a `Cow` made my JSON formatter 42% faster
Summary
The article documents a series of optimizations to a JSON formatter (JJPWRGEM) that replaced Cow<str> usage with &str, reworked number parsing, and reorganized tokenization to achieve a 42% speedup on specified benchmarks. It compares performance against Prettier and Oxfmt, discusses AST versus token-stream paths, and highlights open-source benchmarking results and future improvement opportunities.