Improve performance of bignum[beg, len] (#14007)

Implement rb_big_aref2.
Taking a small slice from large bignum was slow in rb_int_aref2.
This commit is contained in:
tomoya ishida 2025-07-30 01:34:13 +09:00 committed by GitHub
parent 46d106f7ab
commit a66e4f2154
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 131 additions and 18 deletions

View file

@ -85,6 +85,7 @@ VALUE rb_int_cmp(VALUE x, VALUE y);
VALUE rb_int_equal(VALUE x, VALUE y);
VALUE rb_int_divmod(VALUE x, VALUE y);
VALUE rb_int_and(VALUE x, VALUE y);
VALUE rb_int_xor(VALUE x, VALUE y);
VALUE rb_int_lshift(VALUE x, VALUE y);
VALUE rb_int_rshift(VALUE x, VALUE y);
VALUE rb_int_div(VALUE x, VALUE y);