perf: optimize parse caching across providers#116
Merged
iamtoruk merged 14 commits intogetagentseal:mainfrom Apr 20, 2026
Merged
perf: optimize parse caching across providers#116iamtoruk merged 14 commits intogetagentseal:mainfrom
iamtoruk merged 14 commits intogetagentseal:mainfrom
Conversation
a7447fb to
5a48154
Compare
5a48154 to
7594fa0
Compare
Member
|
Merged, thanks SP! Great contribution. Added one small fix on top: tightened TypeScript types (type predicates for breakdown validators, null guards on append state), removed unused exports, fixed a file descriptor leak in the offset reader, and cleaned up import ordering. 329 tests passing, cache integrity verified against no-cache output. Appreciate the thorough work on this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a persistent, provider-agnostic parse cache so repeated runs are fast and avoid reparsing unchanged session data across CLI runs.
What changed
--no-cachesupport for parse-backed commands to force full rebuild.30dayswhere useful.bin/codeburn) to harden global installs.Performance Impact
Benchmark command (all runs are separate CLI processes):
Using the same cache directory for the repeated warm runs.
Upstream baseline (
https://github.com/getagentseal/codeburn@e259220,main):45.600s50.606s,49.515s,42.975s,35.827s,40.916sCurrent branch (
https://github.com/spMohanty/codeburn@7594fa0,dev/cache-parse-parse-performance):51.904s4.953s,6.548s,4.073s,4.264s,4.651sValidation
npm test -- --testTimeout 30000(27test files,329/329tests passed)npm run buildgit statusis cleanNotes