-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop using
std::map<std::string, Prefilter*>
.
Use `absl::flat_hash_set<Prefilter*>` as foretold by the prophecy to avoid string churn, heap pressure et cetera. While I'm here, switch the `Regexp` reference count overflow map from `std::map<Regexp*, int>` to `absl::flat_hash_map<Regexp*, int>`. Change-Id: I57fcfec2931ba6694daee337d6c488118d404fef Reviewed-on: https://code-review.googlesource.com/c/re2/+/61530 Reviewed-by: Alex Chernyakhovsky <[email protected]> Reviewed-by: Paul Wankadia <[email protected]>
- Loading branch information
Showing
4 changed files
with
83 additions
and
48 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
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