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

Zip/Jar file random access #552

Closed
jeffvalk opened this issue May 3, 2014 · 1 comment
Closed

Zip/Jar file random access #552

jeffvalk opened this issue May 3, 2014 · 1 comment

Comments

@jeffvalk
Copy link
Contributor

jeffvalk commented May 3, 2014

Whenever a file contained in a zip archive (jars included) is accessed, cider-find-resource extracts the entire archive. This causes as slight (but noticeable) delay when opening Clojure 1.6 sources (3.7MB), and a significant delay in opening the JDK7 src.zip (42MB).

This seems pretty unnecessary, since zip archives support random access. Is there support in Emacs for reading zip file contents without dumping the whole archive? My digging into the question didn't offer much enlightenment...

@bbatsov
Copy link
Member

bbatsov commented May 6, 2014

No idea. I only know of archive-mode, but I guess you know about it too. I guess you might ask about this on the emacs-devel mailing list or #emacs.

@bbatsov bbatsov closed this as completed in 7a63d2b Jun 1, 2014
bbatsov added a commit that referenced this issue Jun 1, 2014
[Fix #552] Load resources from jar/zip files efficiently.
dgtized pushed a commit to dgtized/cider that referenced this issue Jun 24, 2014
Instead of loading the entire `.jar` file into a buffer, just
extract the single resource to be displayed. Mark it read-only.
If that resource is already open, reuse it.
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