deepseek-harness/docs
Turtle 5329bef04d perf(tui): incremental step timing and card render caches for long sessions
Resuming a long session (196k events, 2.2k steps, 1.8k tool cards) took
~12s to render and ~800ms to echo one keystroke:

- Every step's timing footer called stepTimingAt, which replayed the whole
  event log per footer - O(steps x events) on the initial render.
- pi-tui re-renders every component each frame and relies on per-component
  line caches, but ToolCardComponent/ContextCardComponent built throwaway
  Text/Markdown instances inside render(width), re-wrapping every settled
  card's output on every keystroke.

Replace the per-footer replay with one shared StepTimingTracker per chat
mount (single O(events) cursor over the append-only log), and cache card
rows by width via CardLineCache, dropped by every state mutator and
invalidate().

Measured (tmux 200x50, 196k-event session): resume prompt-ready ~12s -> ~7.6s;
per-keystroke echo ~800ms median -> ~11ms.
2026-08-04 00:37:10 +08:00
..
cookbook adopt native GitHub stack workflow 2026-08-02 03:17:42 +08:00
cordis-catalog perf(tui): incremental step timing and card render caches for long sessions 2026-08-04 00:37:10 +08:00
cordis-tutorial fix(cli): close shared config review gaps 2026-07-30 14:56:39 +08:00
core-data-structures Merge remote-tracking branch 'origin/master' into worktree/fix-multi-select-custom-answer 2026-08-03 16:09:17 +08:00
i18n Merge branch 'worktree-llm-dynamic-config' into worktree-llm-web-config 2026-07-30 15:18:26 +08:00
postmortem Merge fix/web-agent-runtime-context into fix/web-gui-feedback-loop 2026-08-01 22:15:36 +08:00
user Merge branch 'worktree-llm-dynamic-config' into worktree-llm-web-config 2026-07-30 20:15:40 +08:00
agent-lifecycle.md refactor(agent): return request retry action 2026-07-27 21:17:49 +08:00
AGENTS.md docs(notes): archive low-value decision records 2026-07-26 23:06:00 +08:00
architecture.i18n.yaml Merge master into fix/subagent-stack-end-result 2026-08-02 23:13:00 +08:00
architecture.md Merge master into fix/subagent-stack-end-result 2026-08-02 23:13:00 +08:00
architecture.zh.md Merge master into fix/subagent-stack-end-result 2026-08-02 23:13:00 +08:00
capability-seams.md fix(subagent): close continuation lifecycle gaps 2026-08-02 12:51:08 +08:00
config-catalog.md Merge pull request #1119 from deepseek-harness/feat/ripgrep-packaged-binary 2026-08-03 23:31:29 +08:00
cordis-paper.pdf docs: add cordis paper 2026-07-31 15:54:36 +08:00
cordis-primer.i18n.yaml docs(i18n): clarify Cordis and test wording 2026-07-24 14:21:15 +08:00
cordis-primer.md Merge remote-tracking branch 'origin/master' into worktree/pr343-retarget-latest-master 2026-07-23 13:40:29 +08:00
cordis-primer.zh.md docs(i18n): clarify Cordis and test wording 2026-07-24 14:21:15 +08:00
defensive-patterns.i18n.yaml docs(security): include password names in scrub rule 2026-07-28 09:40:33 -07:00
defensive-patterns.md docs(security): include password names in scrub rule 2026-07-28 09:40:33 -07:00
defensive-patterns.zh.md docs(security): include password names in scrub rule 2026-07-28 09:40:33 -07:00
development.i18n.yaml docs: evaluate SPDX conjunctions and read every Python manifest 2026-07-30 19:54:27 -07:00
development.md docs: evaluate SPDX conjunctions and read every Python manifest 2026-07-30 19:54:27 -07:00
development.zh.md docs: evaluate SPDX conjunctions and read every Python manifest 2026-07-30 19:54:27 -07:00
event-producer-consumer.md show subagent usage and active duration 2026-08-02 23:31:24 +08:00
glossary.i18n.yaml docs: align Goal Round step cardinality 2026-07-24 12:10:40 +08:00
glossary.md docs: align Goal Round step cardinality 2026-07-24 12:10:40 +08:00
glossary.zh.md docs(i18n): allow zero-step Goal Rounds 2026-07-23 21:13:34 +08:00
graph-atlas.md fix(docs): align catalogs with consolidated CLI 2026-07-30 10:34:21 +08:00
module-graph.md Merge pull request #1119 from deepseek-harness/feat/ripgrep-packaged-binary 2026-08-03 23:31:29 +08:00
persistence-catalog.md chore(docs): refresh the descriptor catalog pointer 2026-08-02 20:34:43 +08:00
testing.i18n.yaml Merge remote-tracking branch 'origin/master' into feature/shared-cli-config-foundation 2026-07-30 15:00:42 +08:00
testing.md Merge remote-tracking branch 'origin/master' into feature/shared-cli-config-foundation 2026-07-30 15:00:42 +08:00
testing.zh.md Merge remote-tracking branch 'origin/master' into feature/shared-cli-config-foundation 2026-07-30 15:00:42 +08:00
tool-catalog.md Merge remote-tracking branch 'origin/master' into feat/ripgrep-packaged-binary 2026-08-02 16:18:46 +08:00
tool-execution-pipeline.md Merge remote-tracking branch 'origin/master' into feat/send-unify 2026-07-23 22:41:45 +08:00
typert-catalog-integration-design.i18n.yaml refactor(cordis): generate catalogs from Typert models 2026-07-29 23:55:12 +08:00
typert-catalog-integration-design.md refactor(cordis): generate catalogs from Typert models 2026-07-29 23:55:12 +08:00
typert-catalog-integration-design.zh.md refactor(cordis): generate catalogs from Typert models 2026-07-29 23:55:12 +08:00
web-styling.i18n.yaml docs: translate remaining non-README documentation 2026-07-26 02:33:29 +08:00
web-styling.md docs: translate remaining non-README documentation 2026-07-26 02:33:29 +08:00
web-styling.zh.md docs: translate remaining non-README documentation 2026-07-26 02:33:29 +08:00