-
Notifications
You must be signed in to change notification settings - Fork 255
[Performance] Optimize outputDebug to skip expensive work when disabled #7563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| ## 2025-05-14 - Optimize outputDebug to skip expensive string construction | ||
| **Learning:** outputDebug always constructs a timestamped message even when debug logging is disabled. This involves calling `new Date().toISOString()` and string concatenation, which is wasteful in the hot path of logging. | ||
| **Action:** Add an early return in `outputDebug` using `shouldOutput('debug')` to skip work when not in verbose mode. |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💬 Suggestion: There are no dedicated tests for Suggestion: Add a test in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💬 Suggestion:
.jules/bolt.mdis a Jules AI agent reasoning log — not project documentation. Similar AI tool directories (.cursor/,.claude/) are typically gitignored. Without a.gitignoreentry, these files will accumulate as Jules is used on more PRs, adding noise to git history.Suggestion: Add
.jules/to.gitignoreto prevent Jules metadata from being committed. If the file is already merged, remove it in a follow-up.