cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAY-2000) Java 8: ConcurrentLinkedHashMap -> Caffeine
Date Wed, 08 Apr 2015 06:12:12 GMT

    [ https://issues.apache.org/jira/browse/CAY-2000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14484787#comment-14484787
] 

Andrus Adamchik edited comment on CAY-2000 at 4/8/15 6:11 AM:
--------------------------------------------------------------

Hi Ben,

Thanks for the heads up. Latest Cayenne (4.0) is still supporting Java 6 (which we may drop
soon), and will probably support Java 7 for a number of years. This may become different with
Cayenne 5, where concurrency will be the central topic. We'll keep this information in mind.



was (Author: andrus):
Hi Ben,

Thanks for the heads up. Latest Cayenne (4.0) is still supporting Java 6 (which we may drop
soon), and will probably support Java 7 for a number of years. But we'll keep this information
in mind.

> Java 8: ConcurrentLinkedHashMap -> Caffeine
> -------------------------------------------
>
>                 Key: CAY-2000
>                 URL: https://issues.apache.org/jira/browse/CAY-2000
>             Project: Cayenne
>          Issue Type: Task
>            Reporter: Ben Manes
>            Priority: Minor
>
> When Cayenne transitions to requiring Java 8, please upgrade to Caffeine. The performance
should be relatively the same. The per-instance memory usage should be smaller and Cayenne
may decide to opt-in to use some of the additional features. The only drawback is that Cayenne
embeds a copy of the cache (rather than shading) and the jar size is larger due to code generation.
> ConcurrentLinkedHashMap changes will continue to be minimal, even more so now, and driven
by requests from Java 6 users unable to upgrade. Caffeine is ideally the upgrade path for
Guava cache users too, which due to Android cannot be significantly modified.
> Caffeine: https://github.com/ben-manes/caffeine
> Benchmarks: https://github.com/ben-manes/caffeine/wiki/Benchmarks
> ConcurrentLinkedHashMap: https://code.google.com/p/concurrentlinkedhashmap



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message