10000 Change default `memoize` implementation · Issue #858 · evhub/coconut · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Change default memoize implementation #858
Open
@evhub

Description

@evhub

Currently, memoize by default allows the cache to grow without bound, which isn't great as it can lead to memory leaks, but is nice for making sure recursive functions always work well. An alternative compromise implementation could be to allow the cache to grow without bound, but always clear the cache after the end of the first call to the function highest up in the stack. Making this the default would be a breaking change that would need to be done on a major version increment, but we could just make it optional to start with.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0