[optimizer] Add template prefix tracker and enhance offline analysis capabilities#91
Merged
Tyndalllll merged 4 commits intomainfrom Apr 9, 2026
Merged
[optimizer] Add template prefix tracker and enhance offline analysis capabilities#91Tyndalllll merged 4 commits intomainfrom
Tyndalllll merged 4 commits intomainfrom
Conversation
…cripts - Updated README.md to provide a comprehensive overview of output directories and file structures for various analysis scripts. - Modified plotting functions to save generated charts in organized subdirectories within the specified output directory.
- Added a pointer to the BlockEntry in BlockLifecycleRecord to hold references during the block's lifespan. - Updated the lifecycle_plot.py script to prioritize evicted blocks for statistical annotations in the physical lifespan CDF.
42d0bfe to
bfb3b66
Compare
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 introduces the template prefix tracker for shared-prefix (system prompt) detection,
enhances block lifecycle tracking, and improves the structure and usability of offline analysis scripts.
Changes
1. Template Prefix Tracker & RadixTree Refactor (
1f8a3c5)TemplatePrefixTracker: DFS-based shared-prefix (system prompt) detection over RadixTree.2. Block Lifecycle Tracking Enhancement (
42d0bfe)block_entrypointer toBlockLifecycleRecordto hold live references during a block's lifespan.lifecycle_plot.pyto prioritize evicted blocks when annotating the physical lifespan CDF.3. Analysis Script Output Structure (
871cb8f)