helix

https://github.com/Lokeh/helix
zendevil 2021-03-10T15:59:46.001600Z

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

lilactown 2021-03-10T16:34:16.002900Z

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

๐Ÿ‘ 1
lilactown 2021-03-10T16:35:18.003900Z

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

lilactown 2021-03-10T16:37:38.006Z

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

lilactown 2021-03-10T16:39:46.008100Z

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

lilactown 2021-03-10T16:41:09.009500Z

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

lilactown 2021-03-10T16:51:57.010Z

nuance like that is hard to capture in a benchmark though