Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.1b1
-
Component/s: None
-
Labels:None
Description
Most consumers of Regexp and MatchData internally are using them wrong. They generally are re-searching for every match, when the matcher object created by java.util.regex (and now jregex) can just be told to advance to the next match. This causes performance to be very poor in many of these cases.
All consumers of Regexp and MatchData internally should be examined for improvements. In addition, any uses of Regexp and MatchData that are purely internal and never exposed to scripts should be replaced with direct usage of Pattern and Matcher.
This must be fixed by 0.9.9.
By 1.0. Perf isn't as high priority as correctness.