Closed bluwy closed 7 months ago
Latest commit: f02b6de6bea70c02e8f312156b5b89450ef538fa
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Changes
Idea from https://github.com/withastro/astro/pull/10773#pullrequestreview-2005386326
If the
Astro
global is not used, we don't need to print code that callscreateAstro
. This saves on runtime execution as it's created but not used.Perf:
createAstro()
calls dropped from 571ms o 551ms. -0.02s (not a lot, but it helps other cases instead like garbage collection and AST parsing)garbage collection
dropped from 59.52s to 40.88s. -18.7sTesting
Updated tests to handle cases where the
createAstro
code is no longer present.Docs
n/a. internal improvement.