Replies: 1 comment
-
thanks for your input! i'm wondering, do you have some real-world benchmarking measurements or some other data to show that this is actually a problem in production? to be honest, i'm not terribly interested in tackling this without some hard data showing it's a performance problem for real. the lib is already heavily optimized, with many common utilities pre-parsed, and has an aggressive caching layer. if you want something that generates a map of styles ahead of time |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The Problem
Generating styles at runtime can be a bit slow and somewhat unnecessary, since you have to parse the string passed to the function, generate the styles and cache them every time the user opens the app.
Proposed Solution
Generating styles at build-time can improve the performance a lot since the styles will be generated once at build-time and the library will not need to re-generate it on every run, kinda like what styled-components does.
Beta Was this translation helpful? Give feedback.
All reactions