Terrible performance with just around 100 rows (v4)
Describe the bug I first noticed as I was adding a few more columns to my table that the performance was tanking. The more cells in total, the worse the problem gets.
Current behavior It takes around 5 seconds to render (and submit changes) with around 100 rows and about 30 columns. I noticed several things:
- It gets a lot worse when using the DropdownCell
- It renders 3 times when I open a DropdownCell and calls onCellsChanged 3 times, each one taking around 1.5 seconds
- Inspecting using the React Profiler, I couldn't figure out the exact cause, but the flamegraph chart was showing hundreds of RowRenderer calls taking a few milliseconds each (check first image).
Screenshots or gifs
Your environment details
- Device: Desktop (Ryzen 9, has no performance issues)
- OS: Windows 10
- Browser: Chrome
- ReactGrid version: ^4.1.15
Other info: I'm generating the rows directly on the rows prop for the ReactGrid component. It doesn't seem to be the issue, as I've tried memoizing everything and it didn't change anything performance-wise. I also disabled virtual scrolling because the overall scroll performance was terrible (lots of stuttering, single digit fps). Here's a gist with a snippet of the entire code, if needed:
https://gist.github.com/joseserro/c4cf9a191aac0fb8fb628327c6d302e9
Hello there, any updates?
I'm also testing this grid (v4) I suffering big performance issues. I'm displaying about 100 rows and 365 columns (1 per day) virtual scrolling is horrible and without it rendering takes too many times and cause my browser to stop responding.