-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
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):
- Node18: 15s
- Node20: 15s
- Node22: 20s
Service B (larger service, hundreds of resources):
- Node20: 2m
- Node22: 15m+
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
- Select this option if this issue appears to be a regression.
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
- Synth in node18/20 on local env
- nvm use 22
- run synth again and it takes much longer even for very large services.
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