diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2024-08-08 14:11:37 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2024-08-10 10:09:14 +0200 |
| commit | 6ee9a08d32800974c596a01e9190cc8e778a6ee5 (patch) | |
| tree | 33ab4c838bb9b26c6359cae978c7e11139145809 /test/ruby | |
| parent | 7b7dde37f546b74f1dd15e482235fec139b80b70 (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
