Skip to content

perf: reduce agent execution allocations - #473

Merged
mohitranka merged 1 commit into
mainfrom
perf/agent-execution-latency
Sep 1, 2026
Merged

mohitranka merged 1 commit into
mainfrom
perf/agent-execution-latency

Conversation

@mohitranka

@mohitranka mohitranka commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Track editor dirty state without serializing buffers on every key; preserve exact undo, inverse-edit, and syntax-highlight behavior.
  • Share transcript storage copy-on-write and invalidate render caches with transcript revisions.
  • Avoid raw journal event construction during checkpoint replay.
  • Cache native image loads and lazy base64 encoding across provider request builders.
  • Defer viewer highlighting for grammar files larger than 1 MiB.

Validation

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • Focused session, durable, model, and TUI tests pass.
  • cargo test -p forge-core --lib -- --test-threads=1: 230 passed.
  • Full parallel workspace test reached unrelated forge-core workspace-scan timeouts; affected tests pass serially.

@mohitranka
mohitranka merged commit 887f8cf into main Sep 1, 2026
7 checks passed
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