General

Profile

neo237 (Andreas Grau)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

03/19/2009

08:19 PM Ruby Bug #1301: Poor RegExp Matching Performance
=begin
> Theory about regular expressions (formal language theory)
> says there shouldn't be any difference, but Ruby regular
> expressions (same for Perl, Python, and so on) are not
> really regular expressions in the formal sens...
neo237 (Andreas Grau)
12:45 AM Ruby Bug #1301: Poor RegExp Matching Performance
=begin
Using this regexp
regexp = /^(\d*\s+){8,8}+\d+$/

This matches on any line starting with up to 8 number separated by by blanks and a final number

if the string is now in the wrong format, e.g.
str=" ...
neo237 (Andreas Grau)

03/18/2009

11:55 PM Ruby Bug #1301 (Rejected): Poor RegExp Matching Performance
=begin
I noticed a very poor performance on matching regular expressions.

Running following code using ruby 1.9.0 on a Core2Duo (2x2Ghz) takes more than 20s to complete.

regexp = /[b]+.+.+.+.+.+.+.+.+[a]/
str="bbbbbbbbbbbbbb...
neo237 (Andreas Grau)

Also available in: Atom