(core): slow synthesis after update to 2.71.0 #25286
Labels
@aws-cdk/core
Related to core CDK functionality
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p1
Describe the bug
Looks like large
cdk.out
directory (>10GB) is causing slow synthesis due to file/directory hash calculation introduced in#23951.
I was able to revert synthesis times back to normal by just returning static string from
computeChecksumOfFolder
.Looks like calculating hash of 10GB of
cdk.out
content can easily introduce a 10~15 seconds delays.This is especially an issue as there is no automated cleaning process for this directory.
I'm not sure if reading GBs of data each time we are synthesising app is a good idea, especially when a lot of people probably not using #23951 feature anyway.
Expected Behavior
Synthesis times should not by affected by stale data stored in
cdk.out
directory.Current Behavior
The larger the
cdk.out
directory, the slower the synthesis is.Reproduction Steps
cdk.out
Possible Solution
lastModified
time instead from the file's content. Looks like that should be enough for the given functionality.faster hashing alg
Additional Information/Context
No response
CDK CLI Version
2.74.0
Framework Version
No response
Node.js Version
18.16.0
OS
macOS 13.3.1
Language
Typescript
Language Version
5.0.4
Other information
No response
The text was updated successfully, but these errors were encountered: