mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-18 01:06:03 +10:00
[강운덕] [Profiler-31] ConcurrentHashMap의 동시성 레벨을 높여둠
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@3877 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -12,7 +12,7 @@ import java.util.concurrent.ConcurrentMap;
|
||||
*/
|
||||
public class Slf4jLoggerBinder implements PLoggerBinder {
|
||||
|
||||
private ConcurrentMap<String, PLogger> loggerCache = new ConcurrentHashMap<String, PLogger>(256, 0.75f, 32);
|
||||
private ConcurrentMap<String, PLogger> loggerCache = new ConcurrentHashMap<String, PLogger>(256, 0.75f, 128);
|
||||
|
||||
@Override
|
||||
public PLogger getLogger(String name) {
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||
public class SimpleCache<T> {
|
||||
// 0인값은 존재 하지 않음을 나타냄.
|
||||
private final AtomicInteger idGen;
|
||||
private final ConcurrentMap<T, Result> cache = new ConcurrentHashMap<T, Result>(512, 0.75f, 32);
|
||||
private final ConcurrentMap<T, Result> cache = new ConcurrentHashMap<T, Result>(512, 0.75f, 64);
|
||||
|
||||
public SimpleCache() {
|
||||
this(1);
|
||||
|
||||
Reference in New Issue
Block a user