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

cache numba's functions #1318

Open
mikilterribile opened this issue Mar 1, 2024 · 2 comments
Open

cache numba's functions #1318

mikilterribile opened this issue Mar 1, 2024 · 2 comments

Comments

@mikilterribile
Copy link

Hi everyone,

I have been using Datashader with Matplotlib to create dynamic visualizations of large vectors (shapefiles). The approach works fine, but each time I start the program, Numba's functions for creating the canvas and the shaded image are compiled by Numba, resulting in a 6-7 second overhead.

I wonder if it's possible to enable caching (for instance, setting use_cache=True) in the @njit decorator for the function, and whether there is a general solution to overcome this problem.

Thank you in advance for your attention.

Best regards,
Michele Zucchelli.

@jbednar
Copy link
Member

jbednar commented Mar 1, 2024

Yes, this is an issue. Definitely needs addressing!

@mikilterribile
Copy link
Author

ok thank you for your answer

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