Skip to content

Build time crusade: Start Git metadata requests early - #22361

Merged
ianmatson merged 1 commit into
masterfrom
start-git-metadata-early
Nov 16, 2026
Merged

ianmatson merged 1 commit into
masterfrom
start-git-metadata-early

Conversation

@ianmatson

Copy link
Copy Markdown
Contributor

Start Git history requests during initialization without blocking the next Gatsby stage. Await the same request before adding metadata to Markdown nodes, so the build can overlap network work with startup and still propagate errors.

Two successful clean local runs with this change alone averaged 7:52, versus 8:25 across nine master runs at 902e373c: 32.5 seconds (6.4%) faster. This is an independent comparison, not the extra saving over this PR’s stack parent. The startup and sourcing stages together averaged 71.8 seconds versus 106.3 seconds (32.5% lower).

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Deploy preview

Status Details Updated (UTC)
🟢 Ready View preview Nov 16, 2026 05:09PM

@github-actions github-actions Bot added the website About the website (beyond just landing pages) label Nov 14, 2026
@ianmatson
ianmatson added this pull request to stack #22367 November 14, 2026 15:17
@ianmatson
ianmatson force-pushed the start-git-metadata-early branch from 8242268 to d1b4ab8 Compare November 14, 2026 16:44
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Bundle report

Total JS (gzip)

12.22 MiB (no change)

Eager graph (modules shipped in each entrypoint's initial chunks)

Entrypoint Eager size Budget Modules
✅ app 11.15 MiB (no change) report-only 1107
Largest modules in the app closure
Module Size
css ./node_modules/.pnpm/css-loader@5.2.7_webpack@5.101.3/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[1]!./node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.5.6_webpack@5.101.3/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[8].oneOf[1].use[2]!./src/styles/global.css 1023.1 KiB
./src/components/Stickers/Stickers.tsx 696.4 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/puzzle.mjs 388.5 KiB
./node_modules/.pnpm/@posthog+icons@0.36.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@posthog/icons/dist/posthog-icons.es.js 354.8 KiB
./node_modules/.pnpm/react-markdown@8.0.7_@types+react@16.14.66_react@18.3.1/node_modules/react-markdown/lib/react-markdown.js + 88 modules 351.4 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/basketball-coach.mjs 337.4 KiB
./node_modules/.pnpm/framer-motion@14.0.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/render/components/motion/proxy.mjs + 126 modules 287.2 KiB
./node_modules/.pnpm/cloudinary-core@2.14.0_lodash@4.17.21/node_modules/cloudinary-core/cloudinary-core.js 281.9 KiB
./src/components/SearchUI/index.tsx + 87 modules 273.1 KiB
./gatsby-browser.tsx + 60 modules 259.4 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/construction-1.mjs 248.5 KiB
./src/components/Pricing/PricingSlider/Slider.tsx + 87 modules 240.2 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/construction-2.mjs 228.2 KiB
./node_modules/.pnpm/@posthog+brand@0.13.0_react@18.3.1/node_modules/@posthog/brand/dist/generated/hoggies/svg/magnifying-glass.mjs 221.7 KiB
./src/hooks/useProduct.ts + 18 modules 166.8 KiB

Eager-graph budgets are report-only until a baseline is established. Sizes are gzip of public/**/*.js; eager size is webpack module source bytes for the modules actually shipped in the entrypoint's initial chunks (post-tree-shake).

@ianmatson
ianmatson force-pushed the start-git-metadata-early branch 4 times, most recently from bf9a2b8 to e9d94b6 Compare November 16, 2026 15:43
Base automatically changed from reuse-mdx-reading-times to master November 16, 2026 16:53
@ianmatson
ianmatson force-pushed the start-git-metadata-early branch from e9d94b6 to 0068066 Compare November 16, 2026 16:54
@ianmatson
ianmatson marked this pull request as ready for review November 16, 2026 16:54
@ianmatson
ianmatson requested a review from a team as a code owner November 16, 2026 16:54
@ianmatson
ianmatson merged commit c3dc35a into master Nov 16, 2026
19 checks passed
@ianmatson
ianmatson deleted the start-git-metadata-early branch November 16, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

website About the website (beyond just landing pages)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant