From: Kaldrenon Date: 2007-08-02T03:30:06+09:00 Subject: Re: Performance diffrence between ifs and case On Jul 29, 12:10 am, forgottenwizard wrote: > Less to type in > > case i > when arg,a > ... > when arb,b > .. > > instead of > if i="arg" or i="a" > > :) Just a thought from an iffer (cases are ugly in Java, so I just got used to always iffing): case i when arg,a ... when arb,b ... end isn't much different from if [arg,a].include?( i ) ... elsif [arb,b].include?( i ) ... end include? is possibly less efficient, though. Haven't benched it.