[BUG] - HeroUI: Low Rendering Performance
HeroUI Version
3.0.4
Describe the bug
I recently migrated from react-aria-components to HeroUI. I noticed that my dashboard felt slower than usual and was consuming more CPU resources. Consequently, I decided to run a benchmark on the Button component.
Here are the benchmark results:
I truly love the HeroUI library suite. I hope that in the next release, you will be able to implement improvements to enhance overall performance.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
My custom TestButton component utilizes the Button from react-aria-components and the buttonVariants from @heroui/styles for styling.
I wrapped the buttonVariants within useMemo in an effort to boost performance.
I then proceeded to run benchmarks covering the following metrics: Mount, Update, and Unmount.
Expected behavior
I'm hoping that we can achieve performance levels comparable to the original react-aria-components components.
Screenshots or Videos
No response
Operating System Version
macOS, Linux
Browser
Chrome
Source: heroui-inc/heroui