Skip to content

perf: remove runtime allocation hotspots - #472

Merged
mohitranka merged 8 commits into
mainfrom
perf/remove-runtime-hotspots
Aug 31, 2026
Merged

mohitranka merged 8 commits into
mainfrom
perf/remove-runtime-hotspots

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

  • bound stream relay and parallelize safe read-only tools
  • cache streaming markdown and defer catalog refresh
  • checkpoint durable replay state and stream file hashing
  • harden TUI async paths against default-stack overflow

Validation

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo test --workspace --all-targets --locked
  • release allocation and replay benchmarks

@mohitranka
mohitranka merged commit c78c03d into main Aug 31, 2026
7 checks passed
@mohitranka
mohitranka deleted the perf/remove-runtime-hotspots branch August 31, 2026 22:41
mohitranka added a commit that referenced this pull request Sep 11, 2026
* perf(tools): run safe reads concurrently

* perf(core): skip unused prompt snapshots

* perf(tui): avoid cloning stream previews

* perf(tui): bound model stream relay

* perf(tui): defer catalog metadata refresh

* perf(durable): checkpoint replay state

Periodic snapshots bound journal replay to the post-checkpoint suffix while invalid snapshots fall back to full replay. Heap-box dependent TUI futures so expanded replay paths stay stack-safe.

* perf(core): stream file hashing

* test(tui): isolate restart selection
mohitranka added a commit that referenced this pull request Sep 11, 2026
* perf(tools): run safe reads concurrently

* perf(core): skip unused prompt snapshots

* perf(tui): avoid cloning stream previews

* perf(tui): bound model stream relay

* perf(tui): defer catalog metadata refresh

* perf(durable): checkpoint replay state

Periodic snapshots bound journal replay to the post-checkpoint suffix while invalid snapshots fall back to full replay. Heap-box dependent TUI futures so expanded replay paths stay stack-safe.

* perf(core): stream file hashing

* test(tui): isolate restart selection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant