From: nobuyoshi nakada Date: 2005-12-21T10:58:13+09:00 Subject: Re: =~ vs match - Some benchmarks. Hi, At Wed, 21 Dec 2005 09:42:06 +0900, Bill Guindon wrote in [ruby-talk:171822]: > > Huh. Interesting. Why is > > string=~/frogs/o > > faster than: > > string=~/frogs/ > > ..when there are no substitutions involved? > > > > Purely a guess... it's not checking to see if any substitution is > needed on further runs, where by default, it checks every time. No, the check is done at the compilation phase, so Resulted ASTs should be equivalent. I guess it's just an error. -- Nobu Nakada