diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-09 07:53:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-09 07:53:54 +0000 |
commit | 795b8b474c52b97fc81bba7888aa70e18e8fd79d (patch) | |
tree | a7fe09dfc2e37f500881e7fabc971ae5db6aa91e /array.c | |
parent | 9629e7efc143ec5dc409eade499a65f4a348b9ce (diff) | |
download | ruby-795b8b474c52b97fc81bba7888aa70e18e8fd79d.tar.gz |
internal.h: optimize rb_ary_new_from_args
* internal.h (rb_ary_new_from_args): optimization by expanding
arguments in caller to get rid of va_list if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -499,7 +499,7 @@ rb_ary_new(void) } VALUE -rb_ary_new_from_args(long n, ...) +(rb_ary_new_from_args)(long n, ...) { va_list ar; VALUE ary; |