diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-28 07:06:06 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-28 07:06:06 +0000 |
commit | 1f4efb9aedfb8f537630f7c13e431bb230bebd31 (patch) | |
tree | d7216e0981d100da40540800bdd38d6ac7e73a50 /internal.h | |
parent | 715666cc28d441862778000c56a807c9b4c28d00 (diff) |
rest parameter optimization [Feature #15010]
* vm_args.c: rb_ary_dup(args->rest) to be used at most once during
parameter setup. [Feature #15010]
A patch by chopraanmol1 (Anmol Chopra) <[email protected]>.
* array.c (rb_ary_behead): added to remove first n elements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index de62de1029..ea1b926de8 100644 --- a/internal.h +++ b/internal.h @@ -1087,6 +1087,7 @@ size_t rb_ary_memsize(VALUE); VALUE rb_to_array_type(VALUE obj); VALUE rb_check_to_array(VALUE ary); VALUE rb_ary_tmp_new_from_values(VALUE, long, const VALUE *); +VALUE rb_ary_behead(VALUE, long); #if defined(__GNUC__) && defined(HAVE_VA_ARGS_MACRO) #define rb_ary_new_from_args(n, ...) \ __extension__ ({ \ |