tokyo cabinet HDB – 读取&查找记录
摘要:
tchdbget 首先对数据库读锁定,调用tchdbbidx 获取hash和bucket的index,这个算法分布是否均匀呢,没验证。看看代码吧:static uint64_t tchdbbidx(TCHDB *hdb, const char *kbuf, int ksiz, uint8_t *hp){ assert(hdb && kbuf && ksiz >... 阅读全文
posted @ 2010-07-01 16:30 蚂蚁慢慢爬 阅读(430) 评论(0) 推荐(0) 编辑