groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keegan Witt <keeganw...@gmail.com>
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?

-Keegan

On Wed, Jul 1, 2015 at 9:39 AM, David Clark <plotinussmith@gmail.com> wrote:

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

Mime
View raw message