mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-23 01:50:35 +00:00
Audit::will_log() runs on every CQL/Alternator request. Since9646ee05bdit constructs three temporary sstrings per call to look up the audited keyspaces set / tables map with std::string_view keys, costing ~180 insns/op and 2 allocations if sstring misses SSO. This series switches the containers to std::less<> comparators to enable heterogeneous lookup, then drops the sstring temporaries from will_log(). perf-simple-query --smp 1 --duration 15 --audit "table" --audit-keyspaces "ks-non-existing" --audit-categories "DCL,DDL,AUTH,DML,QUERY" baseline3d0582d51e36777 insns/op regression9646ee05bd36952 (+175) this series 36768 (-184, fixed) Fixes https://scylladb.atlassian.net/browse/SCYLLADB-1616 Backport: no, offending commit is not backported Closes scylladb/scylladb#29565 * github.com:scylladb/scylladb: audit: drop sstring temporaries on the will_log() fast path audit: enable heterogeneous lookup on audited keyspaces/tables