摘要: 和memcached不同的是,redis没有使用第三方的事件框架,而是自己封装了io处理机制。有些细节上,redis并没有做到最优化,比如超时事件管理,redis仅仅使用了一个单链表,最新插入的超时事件放在链表头,作者在源码中也提到超时事件上的一些可以改进的地方【比如libevent超时事件采用最大堆实现】“Note that's O(N) since time events are unsorted.Possible optimizations (not needed by Redis so far, but...):1) Insert the event in order, so 阅读全文
posted @ 2012-08-31 18:19 ~嘉言懿行~~我是煲仔饭~~ 阅读(977) 评论(0) 推荐(0) 编辑