digitalmars.D - std.functional.memoize : thread local or __gshared memoization?
- Timothee Cour via Digitalmars-d (4/4) May 24 2017 I could look at source to figure it out but others might wonder and I
- Paul Backus (3/7) May 26 2017 I checked the source, and it's thread-local. (Specifically, it's
I could look at source to figure it out but others might wonder and I couldn't find it in the docs in https://dlang.org/library/std/functional/memoize.html whether memoize works per thread (thread local) or globally (__gshared)
May 24 2017
On Wednesday, 24 May 2017 at 23:56:49 UTC, Timothee Cour wrote:I could look at source to figure it out but others might wonder and I couldn't find it in the docs in https://dlang.org/library/std/functional/memoize.html whether memoize works per thread (thread local) or globally (__gshared)I checked the source, and it's thread-local. (Specifically, it's declared as 'static'.)
May 26 2017