Re: [PATCH 2/3] scripts: check-aclrules: use in instead of find

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

 



On Thu, Nov 21, 2019 at 09:27:31AM +0100, Erik Skultety wrote:
> On Wed, Nov 20, 2019 at 07:32:45PM +0100, Ján Tomko wrote:
> > For checking whether a substring is present in a string,
> > using the pattern:
> >     "str" in string
> > is slightly faster than:
> >     string.find("str") != -1
> >
> > Use it to shave off 4 % of the runtime of this script that
> > processes quite a few long source files.
> >
>
> This is also the case in python FWIW...

Derp...clearly I didn't have my cup of coffee in the morning, since I thought
this was related to perl, sorry for the noise.

Erik

>
> > 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

--
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