Skip to content

cache numba's functions #1318

@mikilterribile

Description

@mikilterribile

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions