Skip to content

Performance Degradation During Scrolling with Merged Cells #5

@dpajak99

Description

@dpajak99

Description

When the visible range in the sheets application contains merged cells, the scrolling performance drops significantly. This issue is especially noticeable on the web platform, where the performance becomes extremely poor. This behavior is unexpected, as Dart theoretically has fewer cells to render when merged cells are present, which should result in slightly better performance.

Steps to Reproduce

  1. Create a sheet with merged cells in the visible range.
  2. Scroll horizontally or vertically through the sheet.
  3. Observe the performance drop compared to scrolling with unmerged cells.

Expected Behavior

Scrolling performance should improve (or at least remain the same) when merged cells are present, as there are fewer individual cells to render.

Actual Behavior

  • Significant performance degradation when merged cells are in the visible range.
  • On the web platform, scrolling becomes highly inefficient and laggy.

Environment

  • Platform: Web and Desktop
  • Flutter Version: 3.27.0-0.2.pre
  • Dart Version: 3.6.0

Additional Notes

Investigating the root cause of this issue is critical, as it impacts the usability of the application, especially for users working on sheets with merged cells. The rendering logic for merged cells may require optimization or debugging to ensure smooth scrolling performance.

Scroll without merged cells:
Screencast from 2024-12-06 14-14-12

Scroll with merged cells:
Screencast from 2024-12-06 14-14-53

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingperformancePerformance improvement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions