Repository navigation
perf(roadmap): parse only the bodies that hold a job record - #4455
Merged
Merged
Conversation
split_record does not parse a body that does not hold the opening text of the record block, and the Markdown parser of the store parses only the blocks. On the 4,431 bodies of the issue listing, the CPU time of split_record goes from 18 s to 23 s down to 5 s to 6.4 s, and the results are the same.
Owner
Author
Verification
This change keeps the behavior, so it adds no test (docs/TESTING.md), and the title is The timing table of the whole intake call is in #4404. |
Owner
Author
|
Review findings after the merge. This PR was merged before the fix, so I did not push to it.
Evidence:
|
dan-petty
pushed a commit
that referenced
this pull request
Nov 11, 2026
🤖 I have created a release *beep* *boop* --- ## [0.111.0](v0.110.0...v0.111.0) (2026-11-11) ### Features * **roadmap:** a decision-point registry with a resolver chain ([#4453](#4453)) ([b73e97a](b73e97a)) * **roadmap:** eval verify stores each case and resumes ([#4451](#4451)) ([7c59565](7c59565)) * **roadmap:** extend a step budget when the run makes progress ([#4464](#4464)) ([c8ed108](c8ed108)) ### Bug Fixes * **ai:** a failed model transport names its phase and its error ([#4460](#4460)) ([54743c4](54743c4)) * **ai:** price the DeepSeek group and its cached input ([#4454](#4454)) ([3b1f6bd](3b1f6bd)) * **roadmap:** stage and refine send no answer count or row ([#4484](#4484)) ([d9c8ee8](d9c8ee8)) * **roadmap:** tool docstrings garble the answer format ([#4486](#4486)) ([2f6114f](2f6114f)) ### Performance Improvements * **roadmap:** parse only the bodies that hold a job record ([#4455](#4455)) ([c653bde](c653bde)) * **tests:** evaluate hour-scale promtool tests every hour ([#4462](#4462)) ([0ac2f76](0ac2f76)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
Each
devops roadmap intakerun lists all 4,431 issues and pull requests, andsplit_recordparsed each body with markdown-it to find the job record block. In #4404, this parse took 68 s to 140 s of a 5 to 6.5 minute intake call.split_recorddoes not parse a body that does not hold the opening text of the record block._RECORD_BLOCKstarts with that text, so such a body has no record. Only 1,084 of the 4,431 bodies hold it.inline._record_block_spanreads only the top-level tokens, which the block parser makes.The result of
split_recorddoes not change for any body. On the 4,431 bodies, its CPU time goes from 18 s to 23 s down to 5 s to 6.4 s, with the same JSON byte for byte.Closes #4445
Change:
openspec/changes/archive/2026-11-11-4445-parse-only-the-bodies-that-hold/