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

Unified Diff: third_party/tcmalloc/chromium/src/packed-cache-inl.h

Issue 7200028: Decrease the kHashbits to 12 effectively restoring the pre-r89459 size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tcmalloc/chromium/src/packed-cache-inl.h
===================================================================
--- third_party/tcmalloc/chromium/src/packed-cache-inl.h (revision 89657)
+++ third_party/tcmalloc/chromium/src/packed-cache-inl.h (working copy)
@@ -139,7 +139,9 @@
// Decrease the size map cache if running in the small memory mode.
static const int kHashbits = 12;
#else
- static const int kHashbits = 16;
+ // We don't want the hash map to occupy 512K memory at Chromium, so
+ // kHashbits is decreased from 16 to 12.
jar (doing other things) 2011/06/20 16:45:02 Question: Rather than forking this file, why don't
+ static const int kHashbits = 12;
#endif
static const int kValuebits = 7;
static const bool kUseWholeKeys = kKeybits + kValuebits <= 8 * sizeof(T);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698