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

Use caching to improve performance #4

Open
MarcSkovMadsen opened this issue Mar 26, 2021 · 0 comments
Open

Use caching to improve performance #4

MarcSkovMadsen opened this issue Mar 26, 2021 · 0 comments

Comments

@MarcSkovMadsen
Copy link

A nice trick to improve performance is to cache results once they have been calculated.

You can simply use pn.state.cache (a dictionery) to cache DataFrames, HoloViews objects etc.

Or if you want to persists to disk and maybe also set expiration time you can use for example DiskCache.

I have an example running here https://awesome-panel.org/caching-example

image

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

1 participant