Skip to content

perf: avoid rewriting unchanged full session snapshots every five seconds #291

Description

@jasonsuhari

Problem

GridBash serializes and atomically replaces the complete session snapshot every five seconds even when no persisted state changed. Large grids can rewrite hundreds of kilobytes per interval, causing unnecessary CPU and disk traffic.

Acceptance checks

  • Autosave skips writes when persisted session state has not changed.
  • Output, input, cwd, layout, tab, background-job, and host changes still become durable promptly.
  • Explicit save and clean shutdown always persist the latest state.
  • Tests cover unchanged and dirty autosave decisions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs-triageNeeds maintainer review and routingtype:maintenanceMaintenance, cleanup, automation, or release operations

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions