leveldb
文章平均质量分 80
hintonic
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
arena
参考:http://blog.youkuaiyun.com/sparkliang/article/details/8567602arena实现为一个简单的顺序分配的内存池,只分配不释放。blocks_数组指针存放每个分配的4k内存块,顺序从尾部开始分配。如果需要分配的内存大于1k,就再分配一个4k的块如果最后一个4k块剩余空间还够,就从最后一个4k 内存块中分配。alloc_ptr_ 指向原创 2017-09-22 08:53:21 · 656 阅读 · 0 评论 -
filter_policy
// Copyright (c) 2012 The LevelDB Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file. See the AUTHORS file for names o原创 2017-10-10 15:42:06 · 495 阅读 · 0 评论 -
options
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file. See the AUTHORS file for names o原创 2017-10-10 15:39:40 · 278 阅读 · 0 评论 -
write_batch
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file. See the AUTHORS file for names o原创 2017-10-10 15:31:42 · 739 阅读 · 0 评论 -
status
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file. See the AUTHORS file for names o原创 2017-10-10 15:21:50 · 868 阅读 · 0 评论 -
filename
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file. See the AUTHORS file for names o原创 2017-10-10 15:09:47 · 2727 阅读 · 0 评论 -
logging
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file. See the AUTHORS file for names o原创 2017-10-10 15:09:14 · 269 阅读 · 0 评论 -
env
提供统一的文件操作接口给外部调用// Copyright (c) 2011 The LevelDB Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file. See the AUTH原创 2017-10-10 15:04:30 · 364 阅读 · 0 评论 -
crc32c
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file. See the AUTHORS file for names o原创 2017-10-10 14:33:34 · 4875 阅读 · 1 评论 -
LRUCache
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file. See the AUTHORS file for names o原创 2017-10-09 17:49:16 · 285 阅读 · 0 评论 -
coding
参考varint编码:http://www.360doc.com/content/14/0325/16/15064667_363619247.shtmlhttp://blog.youkuaiyun.com/flyfish1986/article/details/49020131为了减少int等类型内存占用,采用了精巧的压缩算法。Varint 中的每个 byte 的最高位 bit 是标识原创 2017-09-22 10:42:21 · 285 阅读 · 0 评论 -
port
为不同平台,封装了统一的类,Mutex互斥锁,CondVar条件变量// Copyright (c) 2011 The LevelDB Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICE原创 2017-09-22 09:34:50 · 380 阅读 · 0 评论 -
Slice
Slice指向data_指向的,size_大小的一个char 数组的片段// Copyright (c) 2011 The LevelDB Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICE原创 2017-09-22 09:21:02 · 275 阅读 · 0 评论 -
snapshot
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file. See the AUTHORS file for names o原创 2017-10-30 13:49:27 · 293 阅读 · 0 评论
分享