Skip to content
This repository has been archived by the owner on Jul 31, 2021. It is now read-only.

long boot time #93

Open
sinistral opened this issue Dec 11, 2019 · 1 comment
Open

long boot time #93

sinistral opened this issue Dec 11, 2019 · 1 comment

Comments

@sinistral
Copy link
Contributor

sinistral commented Dec 11, 2019

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
Copy link
Contributor

lvh commented Jan 17, 2020

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants