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

Unified Diff: third_party/WebKit/Source/wtf/HashMap.h

Issue 1363653006: Reserve capacity for static strings HashMap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: third_party/WebKit/Source/wtf/HashMap.h
diff --git a/third_party/WebKit/Source/wtf/HashMap.h b/third_party/WebKit/Source/wtf/HashMap.h
index eac2b9912e346aa26f1abc13cb09212215d214ad..1593a19fff395be49fa171acece6873609e7b47b 100644
--- a/third_party/WebKit/Source/wtf/HashMap.h
+++ b/third_party/WebKit/Source/wtf/HashMap.h
@@ -98,6 +98,11 @@ namespace WTF {
unsigned capacity() const;
bool isEmpty() const;
+ void reserveCapacityForSize(unsigned size)
+ {
+ m_impl.reserveCapacityForSize(size);
+ }
+
// iterators iterate over pairs of keys and values
iterator begin();
iterator end();

Powered by Google App Engine
This is Rietveld 408576698