[강운덕] [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:
Woonduk Kang
2014-05-19 05:45:49 +00:00
parent 7031c4ad72
commit d7df226468
2 changed files with 2 additions and 2 deletions
@@ -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);