Re:Google Docs will now use canvas based rendering
by austincheney on Wednesday May 12, 2021 @10:07AM
(#27130481)
That seems like a moderately weak argument. DOM tables are slow, but if you know what you are doing the DOM is otherwise an insanely fast interface. You can get sub-nanosecond response speed from DOM calls in Firefox (faster than a billion operations per second).
It would be interesting to see the performance differences in numbers. The performance impact of a canvas based approach can be approximated from measuring the performance of heavy SVG animations on GPU load.
Re:Google Docs will now use canvas based rendering
by dmitriid on Wednesday May 12, 2021 @10:31AM
(#27130755)
Raw calls to DOM mean literally nothing when you have to layout those nodes.
And yes, tables are slow. "If you know what you're doing" routinely becomes "let's reinvent virtual lists on an interface that doesn't have a single API to make this pleasant or performant in any conceivable way".
In Google's announcements, they say the reason is performance.