Repository navigation
Don't format the generated build script. - #5253
Merged
Merged
Conversation
davidmorgan
force-pushed
the
wren/no-format
branch
from
November 2, 2026 08:55
af71100 to
fd69348
Compare
davidmorgan
marked this pull request as ready for review
November 2, 2026 09:09
jensjoha
approved these changes
Nov 3, 2026
| ## 2.17.2-wip | ||
|
|
||
| - Performance: don't format the generated build script. This saves about | ||
| 200ms on every build, including no-op builds. The script is marked |
There was a problem hiding this comment.
I don't think we should put 200ms here --- it will depend a lot on the machine running it.
Contributor
Author
There was a problem hiding this comment.
Thanks, done: the changelog now gives the gain as a percentage of a no-op build, about 15%, measured as 1379 → 1169 ms over 15 alternating runs on one machine.
PR HealthPublish ✔️
Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation. This check can be disabled by tagging the PR with Changelog Entry ✔️
Changes to files need to be accounted for in their respective changelogs. This check can be disabled by tagging the PR with |
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.
Formatting the generated build script turns out to be surprisingly expensive due to JIT compiling the analyzer :)
(this is before we have an AOT build)
So we can gain ~200ms on one
dart run build_runner buildby simply not formatting it.