Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
campaignd: Replace vector<pair<k,v>> with map<k,v> for the handlers t…
…able std::vector<std::pair<k,v>> has worse look-up performance than std::map<k,v> in general, not that the difference is too noticeable for such a small dataset like campaignd's handlers table, that is built in such a way its items are arranged in descending order of usage frequency. It still feels like this is the best thing to do to keep future maintainers sane. (Backported 65570f5 from master.)
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters