]> 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)
committerIgor Fedotov <ifedotov@suse.com>
Tue, 8 Jun 2021 10:41:23 +0000 (13:41 +0300)
commit441310929d531ff4e89103bf8974f78678fce741
tree1bc578a5b061075680e6b5a16efa84085b4e8b8c
parent4be1966d3096e50a5044db4b64f617fb461bb84b
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>
(cherry picked from commit a90d63bc488b6f9c4f802b656222879130f725e3)
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