Skip to content

perf(workspace): harden memory lifecycle, staging buffer disposal, and grid row cache cleanup #670

Description

@ZhuchkaTriplesix

Summary

As identified during the pre-release lifecycle and memory audit, several heavy components in workspace and grid result views retain references or lack explicit disposal calls:

  1. DataGridStagingBuffer: Add explicit dispose() override to clear modified cells, inserted rows, and deleted row indices.
  2. Workspaces (PostgresSqlWorkspace, MysqlSqlWorkspace, SqliteSqlWorkspace, ExtensionTableView): Ensure any existing _stagingBuffer is explicitly disposed before creating a new one on query re-execution or page change, and cleanly disposed in the workspace dispose() lifecycle.
  3. ResultsTab: Add dispose() override in _ResultsTabState to release memoized filtered rows and column caches upon unmounting.
  4. VirtualResultGrid: Reset _sortedRows, _columnWidths, and _columnOffsets in dispose() to immediately unbind large matrix references for faster garbage collection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions