摘要: 1、前言redis内存分配库支持jemalloc(Linux默认)、tcmalloc、libc(非Linux默认),编译方式参考Makefile。三种内存分配方式的比较待以后总结——>?2、adlist.h/adlist.c基本数据结构是带头结点的双向链表(非循环),调用依赖zmalloc.h/zmalloc.ctypedef struct listIter { listNode *next; int direction;} listIter;typedef struct list { listNode *head; listNode *tail; void *(... 阅读全文
posted @ 2013-10-28 23:35 飞天虎 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 。。。代码分析之后再总结 阅读全文
posted @ 2013-10-28 22:45 飞天虎 阅读(126) 评论(0) 推荐(0) 编辑