aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-23 23:57:30 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-23 23:57:30 +0000
commit214eecd391d6e2febb4d3c63566b1156abc7f7fc (patch)
treeceb892ab91fa0793ae61bd5a1b1eda58724915f2 /vm_insnhelper.c
parent376e57fee16018b7157c8875d43e4326e76b7c0b (diff)
downloadruby-214eecd391d6e2febb4d3c63566b1156abc7f7fc.tar.gz
resolv: use safe navigation operator to avoid extra hash lookups
@addr2name is a private Hash and never changes its default_proc, so only pay the hash lookup cost once; we know missing entries in the hash will be nil. * lib/resolv.rb (each_name): use safe navigation operator git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
0 files changed, 0 insertions, 0 deletions