summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2024-08-08 14:11:37 +0200
committerJean Boussier <jean.boussier@gmail.com>2024-08-10 10:09:14 +0200
commit6ee9a08d32800974c596a01e9190cc8e778a6ee5 (patch)
tree33ab4c838bb9b26c6359cae978c7e11139145809 /test/ruby
parent7b7dde37f546b74f1dd15e482235fec139b80b70 (diff)
rb_setup_fake_ary: use precomputed flags
Setting up the fake array is a bit more expensive than would be expected because `rb_ary_freeze` does a lot of checks and lookup a shape transition. If we assume fake arrays will always be frozen, we can precompute the flags state and just assign it.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11344
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions