Skip to content

docs: Document Grid Performance Optimizations (Row/Cell Recycling) #9158

@tobiu

Description

@tobiu

The recent performance optimizations for the Grid (#9156 and #9157) introduced significant logic changes to Neo.grid.Body and Neo.grid.Row.
These changes need to be reflected in the JSDoc to ensure future maintainability and understanding of the "Row Skipping" and "Cell Recycling" strategies.

Changes:

  1. Neo.grid.Body.createViewData: Document the force parameter and the auto-detection logic for horizontal scrolling/resizing. Explain the three optimization strategies (Row Skipping, Cell Recycling, Forced Updates).
  2. Neo.grid.Row.createVdom: Document the "Cell Recycling" strategy, specifically how the recycle flag and oldCn Map lookup work to prevent redundant cell re-rendering during horizontal scrolling.
  3. Neo.grid.Row.updateContent: Ensure the params force and recycle are well-documented. (Already done in implementation, but good to double-check consistency).

Metadata

Metadata

Assignees

Labels

aidocumentationImprovements or additions to documentationperformancePerformance improvements and optimizations

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions