diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-04 00:47:05 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-04 00:47:05 +0000 |
commit | 8bfc0b65a9808c0340752b0a4a0b15f980d66658 (patch) | |
tree | a6c01485ab26fefa4cf9cb5cc5ffdcbe8046446f /ChangeLog | |
parent | 8895c18dc69a0873bf54e4bba046250b59f731f9 (diff) | |
download | ruby-8bfc0b65a9808c0340752b0a4a0b15f980d66658.tar.gz |
vm.c: reduce branches for always-set VM fields
thgroup_default, mark_object_ary, load_path, load_path_snapshot,
expanded_load_path, loaded_features, loaded_features_snapshot,
top_self, defined_module_hash are always defined at process startup.
This makes it wasteful to have extra branches in an an effort to
skip the function call to `rb_gc_mark'.
This reduces binary size a small amount on x86-64:
text data bss dec hex filename
2830738 22672 71584 2924994 2ca1c2 ruby.orig
2830234 22672 71584 2924490 2c9fca ruby.after
More similar changes coming when I'm bored enough to notice...
* vm.c (rb_vm_mark): reduce branches for always-set VM fields
(rb_vm_add_root_module): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat Jul 4 09:38:52 2015 Eric Wong <e@80x24.org> + + * vm.c (rb_vm_mark): reduce branches for always-set VM fields + (rb_vm_add_root_module): ditto + Fri Jul 03 20:05:10 2015 Koichi Sasada <ko1@atdot.net> * method.h: introduce rb_callable_method_entry_t to remove |