Skip to content

src: create compile cache when the process exits - #67952

Draft
mertcanaltin wants to merge 1 commit into
nodejs:mainfrom
mertcanaltin:compile-cache-serialize-at-exit
Draft

mertcanaltin wants to merge 1 commit into
nodejs:mainfrom
mertcanaltin:compile-cache-serialize-at-exit

Conversation

@mertcanaltin

Copy link
Copy Markdown
Member

The compile cache is now created when the process exits, so lazily compiled functions are included.

Warm cache (populated by 2 runs of the same workload), hyperfine -N, 30 runs, macOS arm64:

workload main this PR diff
eslint (lint one .ts file, typescript-eslint) 217.9 ms 197.6 ms -9.3%
npm ls 151.5 ms 139.1 ms -8.2%
@babel/core transformSync 91.8 ms 83.1 ms -9.5%
require('typescript') 62.3 ms 61.0 ms -2.1%

Refs: #52696
cc @joyeecheung

Refs: nodejs#52696
Assisted-by: Claude Opus 5.5
Signed-off-by: Mert Can Altin <mertgold60@gmail.com>
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants