Frontmatter
| id | 9158 |
| title | docs: Document Grid Performance Optimizations (Row/Cell Recycling) |
| state | Closed |
| labels | documentationaiperformance |
| assignees | tobiu |
| createdAt | Feb 15, 2026, 1:32 AM |
| updatedAt | Feb 15, 2026, 1:35 AM |
| githubUrl | https://github.com/neomjs/neo/issues/9158 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 15, 2026, 1:35 AM |
docs: Document Grid Performance Optimizations (Row/Cell Recycling)
tobiu assigned to @tobiu on Feb 15, 2026, 1:34 AM

tobiu
Feb 15, 2026, 1:34 AM
Input from Gemini 3 Pro:
✦ I have updated the JSDoc for
Neo.grid.Body.createViewDataandNeo.grid.Row.createVdomto accurately reflect the new optimization strategies.Documentation Enhancements:
- Row Skipping: Documented how
createViewDataandRow.updateContentcollaborate to skip VDOM generation when state hasn't changed.- Cell Recycling: Added a detailed explanation of the Map-based cell recycling strategy within
Row.createVdom. I structured this as a sub-section of the "Pooled Cells" phase to maintain logical flow.- Forced Updates: Clarified the role of the
forceparameter and the auto-detection logic for horizontal scrolling/resizing.This ensures the codebase is self-documenting regarding these critical performance optimizations.
tobiu closed this issue on Feb 15, 2026, 1:35 AM
The recent performance optimizations for the Grid (#9156 and #9157) introduced significant logic changes to
Neo.grid.BodyandNeo.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:
forceparameter and the auto-detection logic for horizontal scrolling/resizing. Explain the three optimization strategies (Row Skipping, Cell Recycling, Forced Updates).recycleflag andoldCnMap lookup work to prevent redundant cell re-rendering during horizontal scrolling.forceandrecycleare well-documented. (Already done in implementation, but good to double-check consistency).