From: Charles Oliver Nutter Date: 2008-01-13T16:32:46+09:00 Subject: Re: 1.9 significantly slower than 1.8 on Mac Marcin Miel��y��ski wrote: > The bottleneck here is the anychar (OP_ANYCHAR in regexec.c) instruction > which uses 'enclen' and 'is_mbc_newline' (which are function pointers, > so impossible to be inlined). > > Joni goes a bit further and uses a bunch of singlebyte specialized > opcodes when it detects singlebyte encoding being used. FYI, for those not following it, Joni is the new regular expression engine for JRuby. It is a port of Oniguruma, the regexp engine for Ruby 1.9. - Charlie