This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git


The following commit(s) were added to refs/heads/main by this push:
     new ea7613baef JENA-2354: Set Caffeine initial cache size to 25%
     new 8a486e74a7 Merge pull request #1996 from afs/jena2354_caffeine
ea7613baef is described below

commit ea7613baef9b03cc2dec0fc3ff71d382ce54ea76
Author: Andy Seaborne <[email protected]>
AuthorDate: Fri Aug 25 13:56:44 2023 +0100

    JENA-2354: Set Caffeine initial cache size to 25%
---
 .../src/main/java/org/apache/jena/atlas/lib/cache/CacheCaffeine.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheCaffeine.java 
b/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheCaffeine.java
index dc9c687319..addaafaa0f 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheCaffeine.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/lib/cache/CacheCaffeine.java
@@ -46,7 +46,7 @@ final public class CacheCaffeine<K,V> implements Cache<K, V>
         @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());
 

Reply via email to