Wonder how much further I'll go.
Pollerclass Poller 是IO multiplexing(多路复用)的封装,是一个纯虚类。 一个 Poller 只属于一个 class EventLoop,每一个线程最多只能有一个 class EventLoop /// /// Base
通过阅读moduo中rpc的示例程序来分析,如何利用一个网络库和Protobuf来构建一个RPC框架 pb generated sources分析pb生成了哪些源码
@[TOC](leveldb 读写流程) API// A DB is a persistent ordered map from keys to values. // A DB is safe for concurrent access from multiple threads without // any external synchronization. class LEVELDB_EXPORT DB { public: // Open the database with the specified "name". // Stores a pointer to a heap-allocated database in *dbptr and returns // OK on success. // Stores nullptr in *dbptr and returns
skiplist 的基本原理不介绍了,本文是有关 leveldb 中 Skiplist 的实现 leveldb 对 Skiplist 的需求 无锁并发读 外部加锁的非并发insert,且 insert 的 key 不会重复 不提供 del,因为如果 leveldb 想要
Compaction的作用 数据持久化 minor compactionleveldb是典型的LSM树实现,因此需要对内存中的数据进行持久化。一次内存数据