]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/pubsub: avoid allocating hash set of strings for attr search
authorCasey Bodley <cbodley@redhat.com>
Thu, 14 Mar 2024 15:27:55 +0000 (11:27 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 10 Apr 2024 17:09:17 +0000 (13:09 -0400)
commit70fc1eae8f5492dd30a650d25c3fe03c29a60426
tree5586dc005ced8a1a810fe007344e8d4376242fd0
parentb5d5c55b5440fef27a63f43ea1e431ff2a4393d7
rgw/pubsub: avoid allocating hash set of strings for attr search

this unordered_set was not static, so we reinitialized it on every call

replace with a constexpr array of string_views so we can search through
sequential memory that's laid out at compile time

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rest_pubsub.cc