aesthetic-suite / framework

🎨 Aesthetic is an end-to-end multi-platform styling framework that offers a strict design system, robust atomic CSS-in-JS engine, a structural style sheet specification (SSS), a low-runtime solution, and much more!
https://aestheticsuite.dev
MIT License
203 stars 5 forks source link

fix: Improve performance by injecting while parsing, instead of after. #123

Closed milesj closed 3 years ago

milesj commented 3 years ago

Summary

Anywhere from a 3-4x improvement.

parseAsBlock() x 2,858 ops/sec ±12.79% (45 runs sampled)
parseAsDeclaration() x 9,152 ops/sec ±4.23% (70 runs sampled)
Fastest is parseAsDeclaration()

Screenshots

Checklist