[libvirt] [PATCH 1/3] scripts: speedup prohibit-duplicate-header

Erik Skultety eskultet at redhat.com
Thu Nov 21 08:26:34 UTC 2019

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 at redhat.com>
> ---
Reviewed-by: Erik Skultety <eskultet at redhat.com>

More information about the libvir-list mailing list