You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yang Jie (Jira)" <ji...@apache.org> on 2021/02/01 13:15:00 UTC

[jira] [Comment Edited] (SPARK-34309) Use Caffeine instead of Guava Cache

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

Yang Jie edited comment on SPARK-34309 at 2/1/21, 1:14 PM:
-----------------------------------------------------------

Some different behaviors about `removalListener`, removalListener in Caffeine always async and the sync `CacheWriter` mechanism evict the data seems a little slower than the guava cache, so there are some case failed.


was (Author: luciferyang):
Some different behaviors about `removalListener`, removalListener in Caffeine always async and the sync `CacheWriter` mechanism evict the data seems a little slower than the guava cache

> Use Caffeine instead of Guava Cache
> -----------------------------------
>
>                 Key: SPARK-34309
>                 URL: https://issues.apache.org/jira/browse/SPARK-34309
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core, SQL
>    Affects Versions: 3.2.0
>            Reporter: Yang Jie
>            Priority: Minor
>
> Caffeine is a high performance, near optimal caching library based on Java 8, it is used in a similar way to guava cache, but with better performance. The comparison results are as follow are on the [caffeine benchmarks |https://github.com/ben-manes/caffeine/wiki/Benchmarks]
> At the same time, caffeine has been used in some open source projects like Cassandra, Hbase, Neo4j, Druid, Spring and so on.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org