You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using multiple frozen columns, the table rendering gets really slow. I'm seeing a lot of forced reflows. Looking at the performance page, with a datatable with 3 frozen columns & 25 rows, I'm seeing 43 calls to updateStickyPosition which does both query the DOM with getBoundingRect(). This triggers a lot of layout trashing.
In our app, rendering that datatable takes 1.8s (vs ~150ms without the frozen columns). The linked reproducer is not as slow as what I'm getting in my app, but it does show a performance difference.
Describe the bug
When using multiple frozen columns, the table rendering gets really slow. I'm seeing a lot of forced reflows. Looking at the performance page, with a datatable with 3 frozen columns & 25 rows, I'm seeing 43 calls to
updateStickyPositionwhich does both query the DOM withgetBoundingRect(). This triggers a lot of layout trashing.In our app, rendering that datatable takes 1.8s (vs ~150ms without the frozen columns). The linked reproducer is not as slow as what I'm getting in my app, but it does show a performance difference.
Reproducer
https://stackblitz.com/edit/c1zzt2ad?file=src%2FApp.jsx
System Information
Steps to reproduce the behavior
Expected behavior
No response