mozilla/treeherder-service — pull request #60 by camd (2013-09-13 23:24:17+00:00)
Title: Logparse perf

Improved performance of the log parser. On a 2MB log file, parsing went from 18.875ms down to 3.326ms. This was due to several changes:

* Better use of ``match`` vs. ``search`` in regex checks, when possible
* only did checks for completeness for a parser when necessary, and only check the member variable, not calling a function.
* check for presence of Tinderboxprint lines with ``if 'Tinderboxprint' in line:`` before using the regex match.
* not using the ErrorParser on the JobArtifact. We don't actually use the error lines in that artifact. And if we ever DO need to, I shouldn't parse for it twice. We should find a way to share that parser's output.
* added a bunch of new tests.