*: use transparent comparison for std::{map,set} with std::string keys

This avoids many std::string temporaries for lookups.
This commit is contained in:
Max Kellermann
2023-03-12 09:11:45 +01:00
parent 27d3dcf14c
commit 8b77da545d
23 changed files with 34 additions and 34 deletions

View File

@@ -88,7 +88,7 @@ private:
/**
* A list of channel names this client is subscribed to.
*/
std::set<std::string> subscriptions;
std::set<std::string, std::less<>> subscriptions;
/**
* The number of subscriptions in #subscriptions. Used to