groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 孙 岚 <realblue...@hotmail.com>
Subject [PROPOSAL]Refine the implementation of LRUCache
Date Wed, 26 Oct 2016 06:27:22 GMT
Hi all,

         I found the LRUCache that Groovy is using is not efficient enough because it is based
on Collections.synchronizeMap, the LRUCache is used by some important classes(e.g. ProxyGenerator,
Closure), so it can impact the performance somehow.

         I propose to replace the implementation with Caffeine(https://github.com/ben-manes/caffeine),
which is a high performance caching library for Java 8 and licensed under APL2.

        Any thoughts?

Cheers,
Daniel.Sun


Mime
View raw message