develooper Front page | perl.perl6.internals | Postings from July 2002

[perl #15425] Regex bugfix and speed-up

Thread Next
Angel Faus
July 23, 2002 13:55
[perl #15425] Regex bugfix and speed-up
Message ID:
# New Ticket Created by  Angel Faus 
# Please include the string:  [perl #15425]
# in the subject line of all future correspondence about this issue. 
# <URL: >


This patch does the following things:
  - it includes patch #15358, that tries to make the regex engine 

  - it fixes a bug on the rx engine, that caused the Intstack on 
rxinfo not to be ever freed.

As a result of this bugfix, very simple regular expressions get a 
noticable speed-up. 

For example, this is the data of matching the pattern /^zza/ against 
"zzabbbbbbbbbcdcdcdcdzz" 100.000 times, with the loop inside parrot 
(or perl5)

parrot, without the patch         12.834 seconds
parrot, with the patch               1.216 seconds

perl 5                                      0.21 seconds

This is of course not representative data, the speed-up is much 
smaller for the average regex. 


-- attachment  1 ------------------------------------------------------

-- attachment  2 ------------------------------------------------------

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About