DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Killing a `Cow` made my JSON formatter 42% faster

Quality: 8/10 Relevance: 9/10

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.

🚀 Service construit par Johan Denoyer