]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
compressor: pass string_view instead of string 38454/head
authorKefu Chai <kchai@redhat.com>
Sat, 21 Nov 2020 14:28:35 +0000 (22:28 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 6 Dec 2020 04:13:50 +0000 (12:13 +0800)
commit0071739201c8cf56bcf4203eb5e9de38eb679aad
treee1e543682900a2e85457fcdf4215335ec876676a
parent1684f60f7e984017627a91ac84920cc51244cf20
compressor: pass string_view instead of string

this allows us to find by string without creating a std::string
instance, even if this string is not nul terminated.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/compressor/Compressor.cc
src/compressor/Compressor.h