dsh-coldread-cache: DSH Long Session Parsing Optimization Plugin

The DeepSeek Harness (DSH) plugin addresses the cold-read overhead in long sessions. The original caching mechanism caused performance stutters due to frequent whole-file parsing triggered by file modifications. By retaining parsed event logs within the process lifecycle, this plugin ensures that long sessions are parsed only once. If the file remains unchanged, it returns the existing data directly; if modified, it reads only the appended bytes for incremental parsing. The plugin strictly validates conditions to prevent errors and coordinates with `freezeStoredEvents` for handling. Its configuration options include memory budgets and eviction policies, making it suitable for long-session scenarios.

Read More