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

Unified Diff: third_party/WebKit/Source/wtf/text/StringImpl.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/text/StringImpl.h
diff --git a/third_party/WebKit/Source/wtf/text/StringImpl.h b/third_party/WebKit/Source/wtf/text/StringImpl.h
index bf33deae45f3d3d5ded33600b83432419aea4d32..7bf3c8e9b42a039bcc134a5f00d92040437e9745 100644
--- a/third_party/WebKit/Source/wtf/text/StringImpl.h
+++ b/third_party/WebKit/Source/wtf/text/StringImpl.h
@@ -195,6 +195,7 @@ public:
~StringImpl();
static StringImpl* createStatic(const char* string, unsigned length, unsigned hash);
+ static void reserveStaticStringsCapacityForSize(unsigned size);
static void freezeStaticStrings();
static const StaticStringsTable& allStaticStrings();
static unsigned highestStaticStringLength() { return m_highestStaticStringLength; }

Powered by Google App Engine
This is Rietveld 408576698