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

Unified Diff: vm/class_table.h

Issue 10311006: - Grow the class table as needed instead of preallocating. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 | vm/class_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/class_table.h
===================================================================
--- vm/class_table.h (revision 7234)
+++ vm/class_table.h (working copy)
@@ -32,7 +32,8 @@
void Print();
private:
- static const int initial_capacity_ = 32 * 1024;
+ static const int initial_capacity_ = 512;
+ static const int capacity_increment_ = 256;
intptr_t top_;
intptr_t capacity_;
« no previous file with comments | « no previous file | vm/class_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698