You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR size: SMALL (37 lines changed across 4 production files)
Prek Checks
✅ ruff check — passed
✅ ruff format — passed ⚠️mypy — 27 pre-existing errors in 3 files; none introduced by this PR.
Code Review
The PR adds a --since-commit flag that diffs from a given commit hash to HEAD, enabling optimization of all functions changed across multiple commits in a session. The change is propagated cleanly through the call chain: CLI → Optimizer → get_functions_to_optimize → get_functions_within_git_diff → get_git_diff.
One minor note:
optimizer.py:161 uses getattr(self.args, "since_commit", None) instead of self.args.since_commit. Since the argument is always registered in _build_parser(), this is safe but inconsistent with how other args are accessed in optimizer.py. It suggests defensive coding for a case that won't happen (arg not being present). Not a bug, just a minor style note. Fix this →
No bugs, security issues, or breaking API changes found.
Duplicate Detection
No duplicates detected. The since_commit parameter follows the same pattern as only_this_commit already present in get_git_diff.
Optimization PRs
PR #1877 (codeflash/optimize-pr1874-2026-03-19T09.01.32) targeting the java-tracer branch has merge conflicts and CI failures, but was created today (< 3 days old) — leaving open to allow the base branch to stabilize.
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
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.
No description provided.