Fork me on GitHub
#helix
<
2021-03-10
>
zendevil.eth15:03:46

one of the reasons given for helix to exist is that it’s more performant than reagent. Are there any benchmarks done for this?

lilactown16:03:16

I have done some micro benchmarks comparing how fast it takes to create elements compared to reagent and plain React.

👍 3
lilactown16:03:18

in practice how this effects your app will differ so I didn't feel the urge to publish the benchmark

lilactown16:03:38

reagent can be fast, and the way that you can scope re-renders to multiple leaves based on a single global ratom changing can be more efficient than having to render from a shared parent

lilactown16:03:46

the way I would explain the real problem is: helix's macros are more efficient while rendering a single component. therefore, if your application is in any waybound by how fast it takes to render, helix.dom and defnc macros will help make your app faster

lilactown16:03:09

React hooks and the top-down state management encouraged by the core React team cause a lot more renders, so if you want to use hooks, helix will help you there

lilactown16:03:57

nuance like that is hard to capture in a benchmark though