Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitozi committed Dec 2, 2024
1 parent a830693 commit 82cb69f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ public Cache build() {
org.apache.paimon.shade.guava30.com.google.common.cache.CacheBuilder
.newBuilder()
.weigher(CacheBuilder::weigh)
// The concurrency level determines the number of segment caches in
// Guava,limiting the maximum block entries held in cache. Since we do
// not access this cache concurrently, it is set to 1.
.concurrencyLevel(1)
.maximumWeight(memorySize.getBytes())
.removalListener(this::onRemoval)
Expand Down

0 comments on commit 82cb69f

Please sign in to comment.