mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-09-04 10:17:17 +00:00
perf[session]: use high-performance segment locks to store session maps
This commit is contained in:
@@ -76,6 +76,7 @@ public class ConcurrentTest {
|
||||
for (int j = 0; j < num; j++) {
|
||||
map.put(j, j);
|
||||
}
|
||||
map.forEachPrimitive(it -> it.value());
|
||||
countDownLatch.countDown();
|
||||
}
|
||||
}).start();
|
||||
@@ -91,6 +92,7 @@ public class ConcurrentTest {
|
||||
for (int j = 0; j < num; j++) {
|
||||
map.remove((long) j);
|
||||
}
|
||||
map.forEachPrimitive(it -> it.value());
|
||||
countDownLatch2.countDown();
|
||||
}
|
||||
}).start();
|
||||
|
||||
Reference in New Issue
Block a user