summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-11 11:45:38 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-11 11:45:38 +0000
commitf44b0e5b4fbeb58fa1b5cff2be44c359f9438cf7 (patch)
treec40e617a9dcc062f5ffdfde5ecc8ea53addc409f /internal.h
parent73e014407f6a464284ac76c44a6985ea64a089e1 (diff)
* gc.c, parse.y: support generational Symbol relatetd marking.
Each symbols has String objects respectively to represent Symbols. These objects are marked only when: * full marking * new symbols are added This hack reduce symbols (related strings) marking time. For example, on my Linux environment, the following code "20_000_000.times{''}" with 40k symbols (similar symbol number on Rails 3.2.14 app, @jugyo tells me) boosts, from 7.3sec to 4.2sec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.h b/internal.h
index 7d9a8aa6c0..2260fe9944 100644
--- a/internal.h
+++ b/internal.h
@@ -578,7 +578,7 @@ int rb_is_local_name(VALUE name);
int rb_is_method_name(VALUE name);
int rb_is_junk_name(VALUE name);
void rb_gc_mark_parser(void);
-void rb_gc_mark_symbols(void);
+void rb_gc_mark_symbols(int full_marking);
/* proc.c */
VALUE rb_proc_location(VALUE self);