atsevan / garbagecat

Automatically exported from code.google.com/p/garbagecat
0 stars 0 forks source link

Regex performance improvements #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the match() methods in the event classes use String.matches(String), 
which causes it to compile the regex every time. Most of those classes already 
have a compiled regex (for data extraction), so they should use it.

Attached is a patch to implement this, which improves performance by around 
30-40% in my quick testing of a few GC logs.

Original issue reported on code.google.com by d...@sunsetutopia.com on 3 Jul 2012 at 6:19

Attachments:

GoogleCodeExporter commented 9 years ago
Attached is a second (additional) patch, which makes the same changes to the 
preprocessor actions

Original comment by d...@sunsetutopia.com on 7 Sep 2012 at 5:22

Attachments:

GoogleCodeExporter commented 9 years ago
Applied r74 and r75. Thank you, James! 

Original comment by mgm...@gmail.com on 16 Oct 2012 at 5:33