summaryrefslogtreecommitdiff
path: root/include/ruby/internal/encoding
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2022-12-16 17:00:13 -0800
committerJohn Hawthorn <john@hawthorn.email>2022-12-17 14:51:49 -0800
commitea3d3c455294b2ad94c93cbe0e61921d71f1d9d3 (patch)
treec1ca84b54152ce5bed8dcea66bf2d195b10e1702 /include/ruby/internal/encoding
parentfbaa5db44a3b0622e2755fd00e0519a603aa9bcb (diff)
Use FL_TEST_RAW in rb_hash_default_value
We should always have a T_HASH here, so we can use FL_TEST_RAW to avoid checking whether we may have an immediate value. I expect this to be a very small performance improvement (perf stat ./miniruby benchmark/hash_aref_miss.rb shows a ~1% improvement). It also removes 9 instructions from rb_hash_default_value on x86_64.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6945
Diffstat (limited to 'include/ruby/internal/encoding')
0 files changed, 0 insertions, 0 deletions