(CDK watch): skip synthesis if the change is only to an Asset #18045
Labels
@aws-cdk/core
Related to core CDK functionality
effort/large
Large work item – several weeks of effort
feature/enhancement
A new API to make things easier or more intuitive. A catch-all for general feature requests.
feature-request
A feature should be added or improved.
p2
Description
There is a possible performance optimization with
cdk watch
: if a given change event is for a file that belongs to an Asset, we can skip synthesizing the Cloud Assembly again (we know it will be the same).Since synthesis is actually the bottleneck for many hotswap deployments (like for Lambda, or for StepFunctions), this might be a significant performance improvement for some use cases, especially in non-NodeJS languages.
Use Case
Hotswapping of resources where
cdk synthesis
is the performance bottleneck, especially in non-NodeJS languages.Proposed Solution
The implementation of this would be quite complex. Basically, when we receive a change in
cdk watch
, we have to:watch
.cdk synth
before.Other information
No response
Acknowledge
The text was updated successfully, but these errors were encountered: