]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: use string_view in BlueFS
authorKefu Chai <kchai@redhat.com>
Tue, 16 Mar 2021 01:38:41 +0000 (09:38 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 16 Mar 2021 15:56:15 +0000 (23:56 +0800)
commita90d63bc488b6f9c4f802b656222879130f725e3
treef1a07e17520036aac9a873a260d62d92bbbf5a3a
parent92665cd93ee6d50d1233e7205f9ffece94e63a20
os/bluestore: use string_view in BlueFS

this improves the performance of lookup. when it comes to mutation
operations, std::map<> always require an instance of string, but
it only require a single instance of string for each mutation operation
in general, so this does not incurs performance regression due to
multiple copies of the same string_view object.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/bluestore/BlueFS.cc
src/os/bluestore/BlueFS.h
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h
src/os/bluestore/bluefs_types.h