Stedi-Public-Archive / cdk-clj

[deprecated – Stedi no longer uses Clojure] A Clojure wrapper for the AWS Cloud Development Kit (AWS CDK)
Apache License 2.0
177 stars 17 forks source link

long boot time #93

Open sinistral opened 4 years ago

sinistral commented 4 years ago

cdk-clj has started taking a very long time to boot for a simple project:

>> time cdk ls
lib-tx-spec
cdk ls  21.98s user 1.28s system 121% cpu 19.072 total

For comparison:

>> time clojure -e "(println \"hello, world\")"
hello, world
clj -e "(println \"hello, world\")"  1.38s user 0.10s system 191% cpu 0.775 total
>> touch lib/dobby-service.ts
>> time make cfn-template
mkdir -p target
./node_modules/cdk/bin/cdk synth --no-staging > target/dobby-service.yaml || rm target/dobby-service.yaml
Successfully synthesized to /Users/marc/Development/sinistral/dobby/build/service.git/cdk.out
Supply a stack id (dobby-Local, dobby-Service) to display its template.
make cfn-template  5.09s user 0.33s system 128% cpu 4.222 total

Generally not a problem for REPL work, but it can be inconvenient for synth & ls at the command line.

lvh commented 4 years ago

Is the synth fn (and App/synth) supposed to do the same thing as cdk synth? Is there a way to do deployment from the REPL?