[Israel.pm] performcane problems (perl 5.6 and 5.8)

Yitzchak Scott-Thoennes sthoenna at efn.org
Sun Mar 2 12:33:27 EET 2008


On Sun, March 2, 2008 1:42 am, Yossi Itzkovich wrote:
> The following line:
> if ( $str=~ /#.*?m_ClassName">(\S+?)</gs)
>
> Takes 0.009 seconds to run 182 times with perl 5.6.1
>
> On same station, and same input, with perl 5.8.8 it takes 4 seconds !

I don't have a handy 5.6.1, and trying this out I don't see any difference
between 5.6.2 and 5.8.8.  You could put in a 'use re "debug";' and see if
perl is doing something different in compiling or executing the regex on
5.6.1?




More information about the Perl mailing list