]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: a faster version of SnapMapper::get_prefix()
authorRonen Friedman <rfriedma@redhat.com>
Tue, 2 Aug 2022 08:40:18 +0000 (08:40 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 3 Aug 2022 06:00:34 +0000 (06:00 +0000)
commitf39ccb1a90a3c77be09fd752a8c59ae5478b45dc
tree87b33e27bce1ea80891b58399175c6ea396c8f49
parent7e12357b9486b63928a914c6fb1cfa35fd9bad6a
osd: a faster version of SnapMapper::get_prefix()

Using fmtlib, and treating the size of uint64_t as a known
quantity.
Per google-bench - the new version is 10% to 20% faster.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/SnapMapper.cc