Best way to optimize performance for a virtualized spreadsheet/grid? #1203
-
So right now any cells that are not in the users viewport are moved to the new position and updated with the new text and styles with This works well apart from when a user has tons of cells in the viewport at one time and starts scrolling. You can see in the gif that I get 10fps on scroll. The big issue is that currently I cannot cache anything with Here's my thoughts on how to it (and how I think Google Sheets does it):
Is their any easier way to do this than the above that I might be missing? There could be theoretically 100,000's of cells which is why I am thinking web worker in step 2. Or maybe use off-screen canvas as well? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
@MartinDawson can you publish your performance stress test online? I can take a look. Personally, I am not sure web worker is a good solution. I think it may complicate the app architecture too much. |
Beta Was this translation helpful? Give feedback.
@MartinDawson can you publish your performance stress test online? I can take a look.
Personally, I am not sure web worker is a good solution. I think it may complicate the app architecture too much.