mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
tuning trial: newobj with current ec
Passing current ec can improve performance of newobj. This patch tries it for Array and String literals ([] and '').
This commit is contained in:
parent
59ddb88da6
commit
344ec26a99
Notes:
git
2020-12-07 08:29:07 +09:00
5 changed files with 89 additions and 4 deletions
|
@ -48,6 +48,9 @@ VALUE rb_ary_tmp_new_from_values(VALUE, long, const VALUE *);
|
|||
VALUE rb_check_to_array(VALUE ary);
|
||||
VALUE rb_ary_behead(VALUE, long);
|
||||
VALUE rb_ary_aref1(VALUE ary, VALUE i);
|
||||
|
||||
struct rb_execution_context_struct;
|
||||
VALUE rb_ec_ary_new_from_values(struct rb_execution_context_struct *ec, long n, const VALUE *elts);
|
||||
MJIT_SYMBOL_EXPORT_END
|
||||
|
||||
static inline VALUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue