kripod / otion

Atomic CSS-in-JS with a featherweight runtime
MIT License
631 stars 24 forks source link

Investigate usage of string `replace` in place of RexExp `exec` loops #49

Closed kripod closed 4 years ago

kripod commented 4 years ago

Motivation

Reducing bundle size with nearly intact performance.

Basic example

https://twitter.com/leaverou/status/1288287409025814528

kripod commented 4 years ago

After doing some benchmarks, it turns out that the performance is not as good as I initially thought.