-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-cdk synth: increased synth time on Node22 runtime #33576
Comments
Verified this is happening on latest of V22 node and V23 as well. |
Thank you for the report. We'll investigate this issue and please help us prioritize with 👍 if anyone is having the same issues. We'll bring this up to CDK engineering team for visibility. |
Also experiencing this with updates to node 22 on our larger services |
Been having this issue as well lately, it is stopping us from migrating some of our repos to node 22. |
What operating systems and architectures are you all on? |
Current Findings
|
We'd also be interested in if you're running compiled JavaScript, or are running TypeScript directly through Are you using Node from Homebrew or elsewhere? Of course, any reproducing repository is appreciated even more dearly. |
Current reports indicate the issue is related to I would appreciate confirmation by anyone who is effected:
|
We were able to get this resolved in our app with a few changes:
On node20 we were seeing ~150-180s synth times with our previous setup and when swapping to node22 it catapulted to 15-20 mins. When we removed this package and swapped to tsx we are seeing ~30s synth times on both node20 and 22. |
Describe the bug
When updating from Node18 or Node20 on MacOS (15.3) to Node22 (22.13.1) synth times grow exponentially based on the size of the service being synthed.
I am seeing increased synth times across our services when increasing from Node20 to Node22 on our github actions and locally. Some benchmarks below:
Service A (small service, maybe 50 resources total):
Service B (larger service, hundreds of resources):
Our synth times are generally longer because we synth stacks for multiple regions and multiple accounts at the same time. For service B if I reduce this to just one environment then it will synth on Node20 in about ~20s and takes 2m 10s on Node22. So I expect that this impact is amplified with the more stacks you are sything and may not be noticeable when synthing only one environment at a time with a small cdk app?
For reference we are using bootstrapless synthesizer.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
No change in synth times when using newer versions of node
Current Behavior
Synth not going brrr
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.1000.2
Framework Version
No response
Node.js Version
22
OS
MacOS 15.3
Language
TypeScript
Language Version
5.7.3
Other information
No response
The text was updated successfully, but these errors were encountered: