perf[session]: use high-performance segment locks to store session maps

This commit is contained in:
godotg
2023-03-25 16:32:28 +08:00
parent 9931633601
commit c521ce159f
2 changed files with 4 additions and 2 deletions
@@ -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();