Slow to synthesize CloudFrontToS3 pattern with other patterns #229
Labels
Backlog
We don't have the bandwidth to support this task right now, but will consider it in the future.
bug
Something isn't working
question
Further information is requested
Researching
We're looking deeper into this issue to see what's involved.
I'm using several patterns, and one of them,
CloudFrontToS3
pattern is really slow to create a CloudFormation template when I runcdk synth
. I put the simpleconsole.time
andconsole.timeEnd
to see how long it takes, and I found the below one caused the most time:aws-solutions-constructs/source/patterns/@aws-solutions-constructs/core/lib/utils.ts
Lines 63 to 68 in 233d3ff
Reproduction Steps
The below one is the source code from my project (part of the source code):
Environment
Other
This is the time that I measured for different patterns used at the same time:
And I don't know what caused the above warning (haven't investigated deeply), but it seems like somewhere, it's looping for the below source code because I only put the time measurement for
CloudFrontToS3
once.aws-solutions-constructs/source/patterns/@aws-solutions-constructs/core/lib/override-warning-service.ts
Lines 61 to 62 in 233d3ff
If you need more information, please let me know.
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: