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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/MakeNames.h.tmpl

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/build/scripts/templates/MakeNames.h.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/MakeNames.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/MakeNames.h.tmpl
index 7d01d3df404e97bed0232d2630e6f3ede0e04f38..e1ff10bb0e1486a66e633f91c21c9f0d7cf89045 100644
--- a/third_party/WebKit/Source/build/scripts/templates/MakeNames.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/MakeNames.h.tmpl
@@ -32,6 +32,8 @@ namespace {{namespace}}Names {
{% endfilter %}
{% endfor %}
+const unsigned {{namespace}}{{suffix}}NamesCount = {{entries|length}};
+
{{symbol_export}}void init{{suffix}}();
} // {{namespace}}Names

Powered by Google App Engine
This is Rietveld 408576698