Skip to content

Commit 7dd8eee

Browse files
committed
fix: update darkmode configuration
1 parent 259a342 commit 7dd8eee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/high-concurrency/redis-rehash.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
这个知识点算 redis 中比较低频的面试点,但是当你在介绍 HashMap 的 rehash 或者 ConcurrentHashMap 的 rehash 过程中,可以主动和面试官提及你不仅了解这些,同时还了解 Redis 中的 rehash 过程。
88

9-
Redis 是以速度快,性能好著称的,我们知道 Redis 一开始的容量是有限的,当容量不足时,需要扩容,那扩容的方式是什么?一次性全部将数据转移吗?那当数据量上千万上亿,这必定会阻塞 Redis 对命令的执行。因此就非常有必要了解一下 Redis 中的 rehash 过程
9+
Redis 是以速度快,性能好著称的,我们知道 Redis 一开始的容量是有限的,当容量不足时,需要扩容,那扩容的方式是什么?一次性全部将数据转移吗?那当数据量上千万上亿,这必定会阻塞 Redis 对命令的执行。因此就非常有必要了解一下 Redis 中的 rehash 过程
1010

1111
## 面试题剖析
1212

@@ -40,4 +40,4 @@ rehash 过程在数据量非常大(几千万、亿)的情况下并不是一
4040
渐进式 rehash 的本质:
4141

4242
1. 借助 rehashidx,将 rehash 键值对所需的计算工作均摊到对字典的每个添加、删除、查找和更新操作上,从而避免了集中式 rehash 而带来的庞大计算量。
43-
2. 在 rehash 进行期间,每次对字典执行添加、删除、查找或者更新操作时,程序除了执行指定的操作以外,还会顺带将原哈希表在 rehashidx 索引上的所有键值对 rehash 到备用哈希表,当 rehash 工作完成之后,程序将 rehashidx 属性的值加 1。
43+
2. 在 rehash 进行期间,每次对字典执行添加、删除、查找或者更新操作时,程序除了执行指定的操作以外,还会顺带将原哈希表在 rehashidx 索引上的所有键值对 rehash 到备用哈希表,当 rehash 工作完成之后,程序将 rehashidx 属性的值加 1。

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
dark: {
8383
background: 'rgb(28,32,34)',
8484
highlightColor: '#e96900',
85-
codeBackgroudColor: 'rgb(34,39,46)',
85+
codeBackgroundColor: 'rgb(34,39,46)',
8686
codeTextColor: '#b4b4b4',
8787
},
8888
light: {

0 commit comments

Comments
 (0)