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

This commit is contained in:
godotg committed 2023-03-25 16:32:28 +08:00
1 parent 9931633601
commit c521ce159f
2 files changed
+4 -2

No files matched your search

@@ -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();