December 19, 2014 Memoizing methods | ||||
---|---|---|---|---|
| ||||
If you memoize a method inside a class definition using std.functional.memoize is caching done in a per-object manner, or do all objects of this class share cached return values? Thank you. |
December 19, 2014 Re: Memoizing methods | ||||
---|---|---|---|---|
| ||||
Posted in reply to kyle | On Friday, 19 December 2014 at 02:45:13 UTC, kyle wrote:
> If you memoize a method inside a class definition using std.functional.memoize is caching done in a per-object manner, or do all objects of this class share cached return values? Thank you.
Memoize uses one hash table per symbol it is applied to -> all objects
|
Copyright © 1999-2021 by the D Language Foundation