Redis底层数据结构之字典
-
@almoon HashMap和字典的rehash操作有相似之处,比如HashMap的容量和Redis的rehash中的ht[1]的容量选择非常类似,都是选用的2^n。
-
@fantasticpsq Java的HashMap从1.8对底层进行较大的优化,您能谈谈这样的优化和Redis的相似设计思想吗
-
@fantasticpsq 听说您一天就能上手kotlin语言,您能谈谈kotlin中的hashmap吗
-
@throwingup 您从哪听说的?
-
@fantasticpsq 小弟亲眼所见!
-
@throwingup 哪只眼睛?
-
@almoon 笔者能力有限,暂时不清楚Redis是否有用到红黑树
-
此回复已被删除!
-
@throwingup 。。
-
@fantasticpsq 没用红黑树,但肯定用了彭黑树