You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/03/30 00:40:09 UTC
[GitHub] merlimat closed pull request #1465: Used defaults for Netty allocator used in entry cache
merlimat closed pull request #1465: Used defaults for Netty allocator used in entry cache
URL: https://github.com/apache/incubator-pulsar/pull/1465
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/EntryCacheImpl.java b/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/EntryCacheImpl.java
index 8aec56c50..f267a6c06 100644
--- a/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/EntryCacheImpl.java
+++ b/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/EntryCacheImpl.java
@@ -69,15 +69,14 @@ public String getName() {
return ml.getName();
}
- public final static PooledByteBufAllocator ALLOCATOR = new PooledByteBufAllocator(
- true, // preferDirect
+ public final static PooledByteBufAllocator ALLOCATOR = new PooledByteBufAllocator(true, // preferDirect
0, // nHeapArenas,
- 1, // nDirectArena
- 8192, // pageSize
- 11, // maxOrder
- 64, // tinyCacheSize
- 32, // smallCacheSize
- 8, // normalCacheSize,
+ PooledByteBufAllocator.defaultNumDirectArena(), // nDirectArena
+ PooledByteBufAllocator.defaultPageSize(), // pageSize
+ PooledByteBufAllocator.defaultMaxOrder(), // maxOrder
+ PooledByteBufAllocator.defaultTinyCacheSize(), // tinyCacheSize
+ PooledByteBufAllocator.defaultSmallCacheSize(), // smallCacheSize
+ PooledByteBufAllocator.defaultNormalCacheSize(), // normalCacheSize,
true // Use cache for all threads
);
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services