Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(792)

Unified Diff: components/omnibox/browser/url_index_private_data.h

Issue 2333253002: flat containers prototype (Closed)
Patch Set: using flat maps/sets to optimise Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/omnibox/browser/url_index_private_data.h
diff --git a/components/omnibox/browser/url_index_private_data.h b/components/omnibox/browser/url_index_private_data.h
index 100692cd7b44e63de9bfbc2b01c3501a6e2bbd95..c1c7f4523b45074d146eedf041d98c54b2087fb5 100644
--- a/components/omnibox/browser/url_index_private_data.h
+++ b/components/omnibox/browser/url_index_private_data.h
@@ -184,7 +184,8 @@ class URLIndexPrivateData
HistoryIDSet history_id_set_;
bool used_; // True if this item has been used for the current term search.
};
- typedef std::map<base::string16, SearchTermCacheItem> SearchTermCacheMap;
+ typedef base::flat_map<base::string16, SearchTermCacheItem>
+ SearchTermCacheMap;
// A helper class which performs the final filter on each candidate
// history URL match, inserting accepted matches into |scored_matches_|.

Powered by Google App Engine
This is Rietveld 408576698