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

Command line flag to simply ignore stale cache files #13474

Closed
Keno opened this issue Oct 7, 2015 · 4 comments · Fixed by #13713
Closed

Command line flag to simply ignore stale cache files #13474

Keno opened this issue Oct 7, 2015 · 4 comments · Fixed by #13713
Labels
good first issue Indicates a good issue for first-time contributors to Julia

Comments

@Keno
Copy link
Member

Keno commented Oct 7, 2015

It would be useful while developing a package to have a command line flag that simply ignores the fact that a cache file is stale and just loads the package normally. Otherwise one has to wait for precompilation to finish, which takes longer than just loading the package.

@ihnorton ihnorton added the good first issue Indicates a good issue for first-time contributors to Julia label Oct 7, 2015
@felipenoris
Copy link
Contributor

+1.

@vtjnash
Copy link
Sponsor Member

vtjnash commented Oct 7, 2015

My observation was that caching added ~15% to the load time of a package, which isn't quite enough for me to think this warrants adding another command line flag.

@Keno
Copy link
Member Author

Keno commented Oct 7, 2015

@timholy knows more about the performance issues, but with precompile directives that can easily go up to 2-3x.

@timholy
Copy link
Sponsor Member

timholy commented Oct 20, 2015

To expand on both points, yes, I agree that under typical circumstances it's not a huge deal. As @Keno says, when you have lines like these that load files like this one (which, you'll note, is basically a no-op unless you're precompiling), then the cost of precompilation is too high to tolerate during development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Indicates a good issue for first-time contributors to Julia
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants