Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(require 'spyscope.core) significantly slows lein startup time #12

Open
philc opened this issue Feb 12, 2014 · 2 comments
Open

(require 'spyscope.core) significantly slows lein startup time #12

philc opened this issue Feb 12, 2014 · 2 comments

Comments

@philc
Copy link

philc commented Feb 12, 2014

I followed the instructions on the readme a few months ago and only recently noticed that requiring scope adds a full 1s to every lein task I invoke. That is really surprising for such a small library. We should either fix this or document it.

Without :injections [(require 'spyscope.core)] in my profiles.clj:

lein new app lein-test && cd lein-test && time lein run
lein run  6.21s user 0.32s system 219% cpu 2.969 total

With:

lein new app lein-test && cd lein-test && time lein run
lein run  8.41s user 0.38s system 226% cpu 3.886 total

This is on a recent Macbook Pro.

lein -v
Leiningen 2.3.4 on Java 1.6.0_65 Java HotSpot(TM) 64-Bit Server VM
@philc
Copy link
Author

philc commented Jun 20, 2014

Bump

@dgrnbrg
Copy link
Owner

dgrnbrg commented Jun 22, 2014

Hey Phil--I think that this could only be caused by the clj-time dependency. I'm inclined to not remove the features that use clj-time. You should only see the increase for profiles that include spyscope, which should only be development/repl profiles.

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

No branches or pull requests

2 participants