Vastly simplifies how the get_cache machinery works, and removes some pretty borderline stuff we were doing before.
Basically, now, for top-level functions, at the time of the memoized definition, we defined a specialized get_cache which makes the lookup static. For everything else, we fall back to the generic (and dynamic) lookup.
Vastly simplifies how the get_cache machinery works, and removes some pretty borderline stuff we were doing before.
Basically, now, for top-level functions, at the time of the memoized definition, we defined a specialized get_cache which makes the lookup static. For everything else, we fall back to the generic (and dynamic) lookup.
Closes https://github.com/marius311/Memoization.jl/pull/16