aws-cdk-lib: the package seems no longer lazy-loaded #27307
Labels
aws-cdk-lib
Related to the aws-cdk-lib package
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
Hi, I just saw the release note and tested the time to require aws-cdk-lib module, expecting it's got faster from 2.98.0. However, as far as I tested it actually got slower.
Looking at strace, it seems that the modules in aws-cdk-lib are not lazy-loaded any more in 2.98.0.
Expected Behavior
I don't know it's expected or not, just creating this issue for visibility.
Current Behavior
Requiring aws-cdk-lib package takes longer time than previous versions. I think it's still fast enough for running a single cdk app though.
Reproduction Steps
Install aws-cdk-lib:
Then run the following code:
Change package version and rerun:
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.98.0
Framework Version
2.98.0
Node.js Version
v18.13.0
OS
macOS, AL2023
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: