From bf8fe1754f66c5743b194c6e485d67c657a4913c Mon Sep 17 00:00:00 2001 From: godotg Date: Tue, 2 Apr 2024 17:00:27 +0800 Subject: [PATCH] chore[map]: doc --- .../collection/concurrent/ConcurrentHashMapLongObject.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/src/main/java/com/zfoo/protocol/collection/concurrent/ConcurrentHashMapLongObject.java b/protocol/src/main/java/com/zfoo/protocol/collection/concurrent/ConcurrentHashMapLongObject.java index a969cfa5..968ef850 100644 --- a/protocol/src/main/java/com/zfoo/protocol/collection/concurrent/ConcurrentHashMapLongObject.java +++ b/protocol/src/main/java/com/zfoo/protocol/collection/concurrent/ConcurrentHashMapLongObject.java @@ -22,8 +22,8 @@ import java.util.function.Consumer; /** - * EN: It is suitable for scenarios where there are more reads and fewer writes - * CN: 适用于读多写少的场景,数据量10w以下性能会有不错的提升,不适用于大数据量的场景 + * EN: The performance is much lower than ConcurrentHashMap of the JDK, and the purpose is to reduce the memory footprint of the Long wrapper type + * CN: 性能远低于JDK自带的ConcurrentHashMap,主要就是减少Long包装类型的内存占用 * * @author godotg */