You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nice! Didn't know about it. I think that should work for memoized top-level functions. At least, it will if the answer to this is yes (which I think it is, just wanting to verify).
I don't think it will currently work for memoized callables/closures though, since looking up the right cache itself is still happening with the non-threadsafe Memoization.cache :: IdDict. To make those threadsafe, I need to add some locking to this package (I don't think we could use ThreadsafeDict there, since the underlying thing needs to be an IdDict, which that doesn't seem to support yet). If this is important to you now, I'm happy to take a PR if you can show the performance hit is not too bad. Otherwise I will play around with this myself at some point in the future.
Can the following library be used to make Memoization.jl threadsafe?
ThreadSafe Dict: https://github.com/wherrera10/ThreadSafeDicts.jl
The text was updated successfully, but these errors were encountered: