Thomas Hurst pisze:
> * Derek Chesterfield (groups / dezuk.com) wrote:
> 
>> On 13 Jan 2008, at 02:15, Marcin Miel??y??ski wrote:
>>
>>> Ruby 1.9 uses Oniguruma which is an encoding agnostic engine.
>> So Ruby 1.9.0's Regexp is slower than 1.8's?
> 
> In some cases, probably; it does quite a bit more, not just in encoding
> support, but more regexp features.  e.g, from a quick glance through
> http://www.geocities.jp/kosako3/oniguruma/doc/RE.txt :
> 

When those features are not used they don't affect performance at all 
(for matching). The main reasons of bottlenecks are the encoding 
agnostic functions and main switch execution instead of inner loops in 
some cases.


> Oniguruma's pretty mature by now, I wouldn't expect the general
> performance profile to change that significantly, although the recent
> port to Java might trigger some changes.
> 

Joni jvm bytecode compiler is on the way (now it uses int[] array for 
the compiled code), it should greatly surpass Oniguruma performance once 
it's finished (it already does for some patterns even without the asm 
compiler).

lopex