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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
Reviewed-by: Erik Skultety <eskultet@xxxxxxxxxx>

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux