8000 Interface to clear caches · Issue #929 · mpmath/mpmath · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Interface to clear caches #929
Open
Open
@skirpichev

Description

@skirpichev

Caching methods 6846 in the mpmath vary from place to place. Some are per-module (e.g. mpmath.libmp.gammazeta.bernoulli_cache), some per context (e.g. QuadratureRule's caches).

Some caches actually can be unbounded (see related issue #811). Especially in such cases we need some interface (e.g. a context method like clear_caches()) to free memory. More low-level caches (i.e. in libmp) probably shouldn't be unbounded.

This might depend on #683. With a more "light" and fluent context objects, that can be created/destroyed on demand - freeing memory isn't a problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0