Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Memoization #15

Open
jamievicary opened this issue Aug 6, 2020 · 0 comments
Open

Memoization #15

jamievicary opened this issue Aug 6, 2020 · 0 comments

Comments

@jamievicary
Copy link
Collaborator

It would be good to discuss how memoization could work for the new codebase. The primary advantage would be to avoid creating duplicate instances of the main Diagram and Rewrite data structures. It may also be convenient to be able to cache other expensive quantities, like the slices of a given diagram, the computation of which can otherwise be a bottleneck during rendering. But getting this wrong could easily lead to too much being cached and excessive memory usage.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant