Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

DataTable: multiple frozen columns is very slow to render #8305

Description

@RolT

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 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.

Reproducer

https://stackblitz.com/edit/c1zzt2ad?file=src%2FApp.jsx

System Information

primereact 10.9.7

Steps to reproduce the behavior

  1. Click on a column to sort
  2. Slow render
  3. Click "Unfreeze cols" button
  4. Click on a column to sort
  5. Fast render

Expected behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs TriageIssue will be reviewed by Core Team and a relevant label will be added as soon as possible

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions