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

Add caching #71

Merged
merged 4 commits into from
Oct 6, 2020
Merged

Add caching #71

merged 4 commits into from
Oct 6, 2020

Conversation

adieUkid
Copy link
Contributor

I found that when using the go-callvis for some large projects (such as kurbernetes), each package takes a long time to render, and these tasks cannot be reused. So i add caching function to avoid some unnecessary re-renderings.

@ondrajz ondrajz closed this Aug 29, 2020
@ondrajz ondrajz reopened this Aug 29, 2020
@ondrajz
Copy link
Owner

ondrajz commented Aug 29, 2020

Hey, thank you for your contribution!

I have one question about the cache expiration - perhaps for those cases when someone uses this during development and code changes. Perhaps some URL query to force no-cache so they can refresh right after some code changes.

@adieUkid
Copy link
Contributor Author

adieUkid commented Sep 1, 2020

You are right. I added it.
For me, the caching function is mainly useful when browsing some larger projects, saving my time without manually copying the generated files

@ondrajz ondrajz merged commit fbe7e9f into ondrajz:master Oct 6, 2020
@ondrajz ondrajz added this to the v0.7.0 milestone Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants