Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 16fb00e

Browse files
authored
🎨
1 parent d427282 commit 16fb00e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎ch16/06_Comparing_Map_Implementations.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ TreeMap |O(log n) |O(log n)| O(log n)|
2121
ConcurrentHashMap |O(1) |O(1) |O(h/n)| h是表格容量
2222
ConcurrentSkipListMap| O(log n)| O(log n)| O(1)|
2323

24-
这就为通用地图留下了实施的选择。 对于并发应用程序,`ConcurrentHashMap` 是唯一的选择。 否则,如果您需要使用映射的插入或访问顺序(例如,将其用作缓存),则可以优先使用 `HashMap` 上的 `LinkedHashMap`(并接受其稍差的性能)。
24+
这就为通用地图留下了实施的选择。 对于并发应用程序,`ConcurrentHashMap` 是唯一的选择。 否则,如果您需要使用映射的插入或访问顺序(例如,将其用作缓存),
25+
则可以优先使用 `HashMap` 上的 `LinkedHashMap`(并接受其稍差的性能)。
2526

2627
《《《 [下一节](../ch17/00_The_Collections_Class.md) <br/>
27-
《《《 [返回首页](../README.md)
28+
《《《 [返回首页](../README.md)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /