]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Add Header cache to KeyValueStore
authorHaomai Wang <haomaiwang@gmail.com>
Tue, 26 Aug 2014 04:40:16 +0000 (04:40 +0000)
committerroot <root@ceph-test.(none)>
Tue, 26 Aug 2014 04:40:28 +0000 (04:40 +0000)
commit33ca26a103a0d99627fddc30f2916c5aeb37c691
treef11737652c35a24ad1ef205d3a3c9e5502d58eb4
parente8dcb8cc603cff64bafc11ee42c5c04a9cf85d12
Add Header cache to KeyValueStore

In the performance statistic recently, the header lookup becomes the main time
consuming for the read/write operations. Most of time it occur 50% to deal with
header lookup, decode/encode logics.

Now adding header cache using SharedLRU structure which will maintain the header
cache and caller will get the pointer to the real header. It also avoid too much
header copy operations overhead.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
Conflicts:

src/os/KeyValueStore.cc
src/os/KeyValueStore.h
src/os/KeyValueStore.cc
src/os/KeyValueStore.h