GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build,win: build,win: replace LTCG with Thin LTO for releases by StefanStojanovic · Pull Request #63114 · nodejs/node

Conversation

@StefanStojanovic

@StefanStojanovic StefanStojanovic commented May 4, 2026

Copy link
Copy Markdown
Contributor

This PR continues the work started in #62761, by using Thin LTO instead of LTCG for Node.js release builds on Windows.

The original idea was to switch from LTCG to Thin LTO, but it was noticed that this led to OOM errors on the release CI machines. As a result, a new option lto-jobs was added to limit the LTO job parallelisation, thus decreasing peak memory usage. That meant making the compilation (linker step) longer, but doable.

I've run benchmarks (10 runs each, on Windows x64) from Node.js, and the results are here. They show that this change improves performance in some cases, while some stay unaffected.

The second thing is the build time. I've had a few successful runs building this in the release CI (run1, run2), and the times were around 3 hours and 10 minutes on both x64 and arm64. This is quite an increase in what we see with LTCG, which is around 1 hour 10 minutes for x64and 1 hour 40 minutes for arm64. The main reason for this is the decreased linker parallelisation, which was needed because the machines we use for compilation have only 8GB of RAM. However, given the number of runs we have in the release CI and the number of machines we have there, this should be acceptable. (We have 3 machines, and each job does 2 Windows compilations).

cc @nodejs/releasers @nodejs/build

Refs: #61964

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@StefanStojanovic StefanStojanovic added windows Issues and PRs related to the Windows platform. build Issues and PRs related to Node.js builds or CI infrastructure. release Issues and PRs related to Node.js releases. labels May 4, 2026
@nodejs-github-bot

nodejs-github-bot commented May 4, 2026

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/gyp
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label May 4, 2026
@StefanStojanovic

StefanStojanovic commented May 19, 2026

Copy link
Copy Markdown
Contributor Author

Pinging @nodejs/releasers and @nodejs/build again for visibility (@nodejs/platform-windows too).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

targos
targos approved these changes May 20, 2026
View reviewed changes
@aduh95 aduh95 added author ready PRs with CI started, the required approvals, and no outstanding review comments. request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels May 20, 2026
StefanStojanovic added 2 commits May 20, 2026 12:49
@StefanStojanovic
build,win: replace LTCG with Thin LTO for releases
6823a33
Signed-off-by: StefanStojanovic <[email protected]>
@StefanStojanovic
build,win: limit LTO parallelisation for releases
bf5c636
Signed-off-by: StefanStojanovic <[email protected]>
@StefanStojanovic
StefanStojanovic force-pushed the mefi-thin-lto branch from 19b298a to bf5c636 Compare May 20, 2026 10:54
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label May 20, 2026
@nodejs-github-bot

nodejs-github-bot commented May 20, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/73578/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented May 20, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/73585/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aduh95 aduh95 added commit-queue PRs queued for automated landing through the Commit Queue. commit-queue-squash PRs the Commit Queue should land as one squashed commit. labels May 20, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label May 20, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 614050b into nodejs:main May 20, 2026
38 of 39 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented May 20, 2026

Copy link
Copy Markdown
Collaborator

Landed in 614050b

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aduh95 pushed a commit that referenced this pull request May 22, 2026
@StefanStojanovic @aduh95
build,win: replace LTCG with Thin LTO for releases
8603275
Signed-off-by: StefanStojanovic <[email protected]>
PR-URL: #63114
Refs: #61964
Reviewed-By: Michaël Zasso <[email protected]>
@github-actions github-actions Bot mentioned this pull request May 30, 2026
2026-06-01, Version 26.3.0 (Current) #63664
Merged
@legendecas legendecas mentioned this pull request Jun 9, 2026
GitHub Actions are failing on Windows on Node.js v26 nodejs/node-gyp#3327
Closed
@legendecas legendecas added the baking-for-lts PRs whose changes need more time before an LTS backport. label Jun 9, 2026
rezonant added a commit to astronautlabs/libyuv-node that referenced this pull request Jul 16, 2026
@rezonant
fix: node 26: remove incorrect/ignored target_defaults section, exclu…
2a113c8
…de ltcg:incremental, lto=thin, lldltojobs=2 from build

cause: nodejs/node#63114
breaks in: node.js 26.3.0+
bug should be filed on this one
@marcpems marcpems mentioned this pull request Aug 21, 2026
Backport Windows PGO + ThinLTO from main to v24 LTO builds for builds (x64 and Arm64) #65452
Open
@StefanStojanovic StefanStojanovic mentioned this pull request Aug 25, 2026
build,win: remove LTO parallelisation limit #65535
Merged
nodejs-github-bot pushed a commit that referenced this pull request Aug 27, 2026
@StefanStojanovic
build,win: remove LTO parallelisation limit
4f7e214
Signed-off-by: StefanStojanovic <[email protected]>
PR-URL: #65535
Refs: #63114
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
aduh95 pushed a commit that referenced this pull request Aug 29, 2026
@StefanStojanovic @aduh95
build,win: remove LTO parallelisation limit
ea9a0fa
Signed-off-by: StefanStojanovic <[email protected]>
PR-URL: #65535
Refs: #63114
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
aduh95 pushed a commit that referenced this pull request Sep 3, 2026
@StefanStojanovic @aduh95
build,win: remove LTO parallelisation limit
6fd0785
Signed-off-by: StefanStojanovic <[email protected]>
PR-URL: #65535
Refs: #63114
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@StefanStojanovic StefanStojanovic mentioned this pull request Sep 21, 2026
[v24.x backport] build,win: replace LTCG with Thin LTO for releases #66170
Draft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@targos targos targos approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. baking-for-lts PRs whose changes need more time before an LTS backport. build Issues and PRs related to Node.js builds or CI infrastructure. commit-queue-squash PRs the Commit Queue should land as one squashed commit. needs-ci PRs that need a full CI run. release Issues and PRs related to Node.js releases. windows Issues and PRs related to the Windows platform.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@StefanStojanovic @nodejs-github-bot @targos @legendecas @aduh95
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.