Skip to content

Performance improvements - remove garden/spade? #409

@kimo-k

Description

@kimo-k

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.
image

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions