Skip to content
  • John Hawthorn's avatar
    ea3d3c45
    Use FL_TEST_RAW in rb_hash_default_value · ea3d3c45
    John Hawthorn authored
    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.
    ea3d3c45
    Use FL_TEST_RAW in rb_hash_default_value
    John Hawthorn authored
    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.
Loading