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

Make Artifacts Cache Durable #263

Closed
paulrd opened this issue Jul 31, 2019 · 2 comments
Closed

Make Artifacts Cache Durable #263

paulrd opened this issue Jul 31, 2019 · 2 comments

Comments

@paulrd
Copy link
Contributor

paulrd commented Jul 31, 2019

Hi this is a feature request. Would it be possible to make the artifacts cache durable (write to local file) so that https://clojars.org/repo/all-jars.clj is not downloaded every time cider jacks-in? I have the bad habit of restarting the cider repl many times and that's 4MB each time and I have to pay a lot for bandwidth. Also, bandwidth could be saved by downloading the gzipped version which is a fraction (1/8th) the size (500KB) https://clojars.org/repo/all-jars.clj.gz.

@paulrd
Copy link
Contributor Author

paulrd commented Jul 31, 2019

I can give this a shot. It just needs to write a timestamp to a file and switch to using gzip. I wonder if there is already a file that I can reuse for this purpose :artifacts-cache-age-timestamp ?

@expez
Copy link
Member

expez commented Aug 1, 2019

Hi, this sounds like a good idea to me.

We can do either or both. Do keep in mind that you have to check for the presence of gzip before running the new code path. Especially our users on Windows are unlikely to have that utility available on path for emacs to use.

@paulrd paulrd mentioned this issue Aug 1, 2019
6 tasks
@expez expez closed this as completed Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants