May 24, 2017 std.functional.memoize : thread local or __gshared memoization? | ||||
---|---|---|---|---|
| ||||
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 26, 2017 Re: std.functional.memoize : thread local or __gshared memoization? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timothee Cour | 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'.)
|
Copyright © 1999-2021 by the D Language Foundation