Skip to content

Commit

Permalink
Merge pull request apache#1996 from afs/jena2354_caffeine
Browse files Browse the repository at this point in the history
JENA-2354: Set Caffeine initial cache size to 25%
  • Loading branch information
afs authored Aug 28, 2023
2 parents 07977b7 + ea7613b commit 8a486e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public CacheCaffeine(int size, BiConsumer<K, V> dropHandler) {
@SuppressWarnings("unchecked")
Caffeine<K,V> builder = (Caffeine<K,V>)Caffeine.newBuilder()
.maximumSize(size)
.initialCapacity(size/2)
.initialCapacity(size/4)
// Eviction immediately using the caller thread.
.executor(c->c.run());

Expand Down

0 comments on commit 8a486e7

Please sign in to comment.