]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: improve hobject_t::to_str() performance
authorRonen Friedman <rfriedma@redhat.com>
Mon, 12 Feb 2024 16:23:15 +0000 (10:23 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Wed, 21 Feb 2024 14:07:06 +0000 (08:07 -0600)
commite462f76aedbb89e8db57dc2324d4f5e9fe54cf9e
tree0689ac8e13836402e76c2c156e4a6f9f68c88fa4
parentf912e9045ad2055311a189a0de2995c6b5cbd2ba
osd: improve hobject_t::to_str() performance

The new version of the code takes only ~70% of the time of the old one.
See https://github.com/ronen-fr/hobjtostr/tree/rf-1 for the code used
to benchmark the performance of this and various other implementations.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/common/fmt_common.h
src/common/hobject.cc
src/common/hobject.h
src/include/object_fmt.h
src/include/types.h