perf: vertical virtual renderer: seven correctness fixes and a render-area clear
Follow-up to #4917, which grouped perf optimization PRs specific to data, event, sort and filter paths and not render. This groups changes for the vertical virtual renderer.
Background: I wrote a custom renderer VirtualDomVertical its fast and handles variable-height rows and fixes some renderer issues. I though it was time to get these changes back into core so I can drop the custom version.
| # | PR | Kind | Touches | Source lines |
|---|---|---|---|---|
| 1 | #4929: record renderMode as a string for custom renderer classes |
fix | RowManager.js |
13 |
| 2 | #4930: align scrollToRowPosition with the row's actual offsetTop |
fix | rendering/Renderer.js |
33 |
| 3 | #4931: four state-tracking fixes in the vertical virtual renderer | fix | VirtualDomVertical.js |
29 |
| 4 | #4935: disable browser scroll anchoring on the table holder | fix | tabulator.scss |
1 |
| 5 | #4936: clear the render area with replaceChildren() |
perf | BasicVertical.js, VirtualDomVertical.js |
14 |
All prs are independent, no perf loss. The order above is least to most invasive; any one can be taken alone.
#4931 collects the four smallest fixes, one commit each, because reviewing them separately would be annoying. #4932, #4933 and #4934 are closed in favour of it.
Each PR carries its own measurements and caveats. Happy to share the benchmark harness or split anything further.
Source: tabulator-tables/tabulator