]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Add Header cache to KeyValueStore
authorHaomai Wang <haomaiwang@gmail.com>
Thu, 20 Mar 2014 06:04:45 +0000 (14:04 +0800)
committerHaomai Wang <haomaiwang@gmail.com>
Mon, 7 Jul 2014 06:08:43 +0000 (14:08 +0800)
commitd1049794bcbaf3517cfcb5faac66b5ed0c581bfc
treebb68e01a983dd91bcfd684ab468e7dd33144f049
parent34ba8faf752e7ada388d032bc3f3a2fbbce8cf54
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>
src/os/KeyValueStore.cc
src/os/KeyValueStore.h