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

Slow start? #6

Open
tiye opened this issue Mar 21, 2020 · 4 comments
Open

Slow start? #6

tiye opened this issue Mar 21, 2020 · 4 comments

Comments

@tiye
Copy link

tiye commented Mar 21, 2020

My device might be slow(1.2 GHz Intel Core m3) but it takes so much and I don't know what's happening...

=>> yarn m2
yarn run v1.19.1
$ clj -A:release install
POM... respo/respo {:mvn/version "0.12.0-a1"}
Skipping paths: macros
JAR... target/project.jar (thin)
Building thin jar: target/project.jar
Processing pom.xml for {respo/respo {:mvn/version "0.12.0-a1"}}
Install...
Installing respo/respo-0.12.0-a1 to your local `.m2`
done.
✨  Done in 36.76s.

It was not always this slow but roughly 10s could be cost based on my impressions.

@tiye
Copy link
Author

tiye commented Mar 22, 2020

Unfortunately, deps-library fetches dependencies from registry and it's pretty slow from China. So... I have to use install very frequently so solve our own case.

@mhuebert
Copy link
Member

This sounds like behaviour of tools.deps itself. Would this not be the same with any tool that relies on dependencies from clojars/ maven central? How do others in China work around that? (Local mirrors?)

@tiye
Copy link
Author

tiye commented Mar 22, 2020

While trying shadow-cljs we figured out there are mirrors:

  :repositories {
    "central" {:url "https://maven.aliyun.com/nexus/content/groups/public/"}
    "clojars" {:url "https://mirrors.ustc.edu.cn/clojars/"}
  }

The clojars repo looks like syncs 1 or 2 times a day. Uself for most of the libraries.

@mhuebert
Copy link
Member

Hm, should work to set up those mirrors in your system deps.edn? Looking at ‘Procurers’ here https://clojure.org/reference/deps_and_cli

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