-
-
Notifications
You must be signed in to change notification settings - Fork 70
Description
Discussed in #408
Originally posted by beders January 2, 2024
Hi there, first of all: thanks for re-frame-10x. Very useful.
That said, team adoption is hindered by performance issues.
With the subs
tab open, typing into any input field is so slow that it becomes unusable.
Even with the subs
tap not showing, performance is affected quite significantly.
Use Chrome's Profiler I think I found one reason for 10xs slowness: Garden CSS.
Here's a snapshot of how much time is actually spent on compiling, expanding and setting CSS.
For some traces, it seems re-com is responsible for a lot of new CSS creation on every render, but it seems 10x is using it directly as well.
So my proposal is to use something like TailwindCSS or another standard static CSS library to avoid the performance hit or maybe figure out why garden.do_compile
runs for every keystroke (i.e. re-render)