Skip to content

Commit 068593c

Browse files
committed
Update public notes
1 parent debdf74 commit 068593c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

content/编程相关/编程语言/Cpp 之旅 第三版 读书笔记.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,10 @@ v.emplace_back(1, "build in place"); // 就地构造
12981298
- map 通常使用红黑树实现。
12991299
- unordered_map 是哈希表。 *周树人是鲁迅。*
13001300
- 传递容器时,传递引用;返回容器时,应返回值。
1301+
- 优先选择紧凑的、连续存储的数据结构.
13011302
- 没有顺序就用无序容器。
1302-
-
1303+
- 通过实验来检查你设计的哈希函数是否令人满意.
1304+
- **将多个标准哈希函数用异或操作符组合设计成的哈希函数通常有较好的效果**.
1305+
- 如果遇到了内存相关的性能问题,尽量减少使用自由存储和/或考虑使用专门的分配器.
13031306

13041307
#todo

0 commit comments

Comments
 (0)