
21 Nov
2019
21 Nov
'19
8:26 a.m.
On Wed, Nov 20, 2019 at 07:32:44PM +0100, Ján Tomko wrote:
Running regular expressions with capture groups is expensive. Bail out early if the line does not start with a '#'.
This reduces the runtime of the check by two thirds.
Signed-off-by: Ján Tomko <jtomko@redhat.com> --- Reviewed-by: Erik Skultety <eskultet@redhat.com>