From: "Marcin Mielżyński" Date: 2008-04-01T21:00:09+09:00 Subject: Re: Why Ruby do not optimize code at all? ts wrote: > Marcin Mielżyński wrote: >> It's not a premature optimisation, just unimplemented yet fallback with >> /* TODO: if some === method is overrided */ comment in the source >> (insns.def) for opt_case_dispatch specialized instruction (very easy to >> accomplish having vm_opt_method_table and ruby_vm_redefined_flag). > > it's a premature optimisation and even worth, in this case, a bug > because it's known, at *compile time*, that the method #=== is > defined for Symbol, this mean that this optimisation must not exist > for Symbol#=== > Not true. The instruction itself is responsible for the fallback (just not implemented yet). lopex