]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: combine several fixed-size `encode()` calls 60252/head
authorMax Kellermann <max.kellermann@ionos.com>
Thu, 10 Oct 2024 11:33:17 +0000 (13:33 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Mon, 9 Dec 2024 11:35:25 +0000 (12:35 +0100)
commit4ebdd59cfe46334d8c64c40756d27cbb127f152b
tree4d00357b2f599c37b88910eeec7db386275faccf
parentb27c8015a05984ce60284e23db8c90f3247840ff
mds: combine several fixed-size `encode()` calls

The `denc` library allows appending multiple values in a single
`buffer::list` call by wrapping them in a `std::tuple`.  This reduces
overhead because the buffer bounds checks have to be performed only
once.

This patch optimizes several types that turned up in the profiler.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
src/mds/Anchor.cc
src/mds/CInode.cc
src/mds/journal.cc