groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keegan Witt <>
Subject Re: Memoized AST
Date Thu, 23 Jul 2015 15:38:49 GMT
I haven't used that annotation personally (so somebody that knows better
can correct me if I'm wrong here), but I think it is.  If you look at the
implementations of org.codehaus.groovy.runtime.memoize.MemoizeCache
(org.codehaus.groovy.runtime.memoize.UnlimitedConcurrentCache and
org.codehaus.groovy.runtime.memoize.LRUCache), they both use synchronized
collections for their caches.

If I'm understanding this correctly, should we maybe mention the fact
@Memoized is thread-safe in its Javadoc?


On Wed, Jul 1, 2015 at 9:39 AM, David Clark <> wrote:

> Quick question. Is the cache that the Memoized AST creates thread safe?

View raw message