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

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: Fixed the deduced string length (exclude NULL terminator) 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
« no previous file with comments | « third_party/WebKit/Source/modules/InitModules.cpp ('k') | third_party/WebKit/Source/wtf/MainThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6bfed3451c2e07915d47be037cf9a874dc25c138..ac75e2762b6ad8db57d76401329b1f502777c3da 100644
--- a/third_party/WebKit/Source/wtf/HashMap.h
+++ b/third_party/WebKit/Source/wtf/HashMap.h
@@ -97,6 +97,11 @@ public:
unsigned size() const;
unsigned capacity() const;
+ void reserveCapacityForSize(unsigned size)
+ {
+ m_impl.reserveCapacityForSize(size);
+ }
+
bool isEmpty() const;
// iterators iterate over pairs of keys and values
« no previous file with comments | « third_party/WebKit/Source/modules/InitModules.cpp ('k') | third_party/WebKit/Source/wtf/MainThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698