]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librgw: implement small-directory name cache
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 22 Dec 2015 07:15:42 +0000 (02:15 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:07:15 +0000 (12:07 -0500)
commit453219cb12d3de60c422fb98fce86d46ea26cbb9
treedd864d8c5ab559c630b025dc6e386409ffcf3204
parente8fc2b757eb483d962a3a1f6ae2ea277879e0ecf
librgw: implement small-directory name cache

Augment the existing marker cache with cache of name->type
mappings for up to 128 dirents (appx. 4x the common upper-bound
of 32).

The motivation here is to use the name and type information from
readdir, rather than discarding it.  Boosts perf. at least 60%
on unit test corpus.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc
src/rgw/rgw_file.h