Performance for something like this is critical. How do you test or plan on testing performance to prevent regressions? I’ve yet to crack this nut in a way that makes me happy.
Yes it is. The Spreadsheet is powered by ReactJS and Konva. React and Konva provides a Profiler and Devtools to measure performance and to prevent any un-necessary re-renders. We also measure the Canvas FPS to make sure rendering is at max 60fps. The bottleneck we have identified is with scrolling large amounts of text, especially in large 42 inch 4K monitors, where FPS limits to 55-60fps. We do have some workaround…
Show HN: React Spreadsheet 2
41–50 of 144 posts
Re: Show HN: React Spreadsheet 2
#42Re: Show HN: React Spreadsheet 2
#43Re: Show HN: React Spreadsheet 2
#44Is it able to handle tables with 1,000,000+ rows?
To give an example of what makes it so difficult: Some browsers (e.g. Chrome) seem to have special optimizations for rendering tables. So performance-wise it makes a difference if you use table-tr-td-tags or div-tags within your DOM.
Re: Show HN: React Spreadsheet 2
#45The demo is neat. How did you do the backend? As far as I see your offering is only related to the UI components. What databases and backends are you seeing users have success with?
We are agnostic to back-end frameworks. Some users have used Prisma + Graphql, NoSQL databases etc.
The Sheet data structure on the UI can be flexible too. It can come from streaming data source, lazily loaded on-demand or all stored in browser memory
Re: Show HN: React Spreadsheet 2
#46Re: Show HN: React Spreadsheet 2
#47A few weeks ago I was looking for a spreadsheet component that could be used with Svelte. To my surprise, I found something quite complete: Github: https://github.com/ticruz38/svelte-sheets Demo: https://ticruz38.github.io/svelte-sheets It doesn't have the collaborative functionality as React Spreadsheet 2, but other than that it looks comparable.
Re: Show HN: React Spreadsheet 2
#48Earlier quoted context omitted.
Yes it is. The Spreadsheet is powered by ReactJS and Konva. React and Konva provides a Profiler and Devtools to measure performance and to prevent any un-necessary re-renders. We also measure the Canvas FPS to make sure rendering is at max 60fps. The bottleneck we have identified is with scrolling large amounts of text, especially in large 42 inch 4K monitors, where FPS limits to 55-60fps. We do have some workaround…
You mentioned physical size of monitors. Does it affect performance in your tests? I would be very, very surprised if performance on 27" 4k monitor was any different than on 42" 4k monitor. Maybe I'm not aware of some quirk?
Slight degradation on Dell 42" 4K, could be because of the ppi or the pixel ratio, which might be causing canvas/row/cell/ dimensions to be not rounded to whole numbers (this can affect perf).
Re: Show HN: React Spreadsheet 2
#49Pleasantly surprised to see conspiracies about Tupac and 'vue gang' take over the sheet instead :)
Re: Show HN: React Spreadsheet 2
#50Saw the collaboration mode and immediately feared it would devolve into people throwing around slurs as many unmoderated online experiences often do. Pleasantly surprised to see conspiracies about Tupac and 'vue gang' take over the sheet instead :)