libvirt/scripts
Ján Tomko 988f02a99c scripts: check-aclrules: use in instead of find
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.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
2019-11-22 11:40:52 +01:00
..
augeas-gentest.py build-aux: rewrite augeas test generator in Python 2019-10-18 13:54:03 +01:00
check-aclperms.py src: rewrite ACL permissions checker in Python 2019-11-20 14:45:25 +00:00
check-aclrules.py scripts: check-aclrules: use in instead of find 2019-11-22 11:40:52 +01:00
check-driverimpls.py src: rewrite driver impl checker in Python 2019-11-20 14:45:25 +00:00
check-drivername.py src: rewrite driver name checker in Python 2019-11-20 14:45:25 +00:00
check-symfile.py src: rewrite symfile library checker in Python 2019-11-20 14:45:25 +00:00
check-symsorting.py src: rewrite symfile sorting checker in Python 2019-11-20 14:45:25 +00:00
cocci-macro-file.h scripts: introduce a macro file for coccinelle 2019-10-21 12:51:54 +02:00
dtrace2systemtap.py src: rewrite systemtap probe generator in Python 2019-11-20 14:45:25 +00:00
genpolkit.py src: rewrite polkit ACL generator in Python 2019-11-20 14:45:25 +00:00
gensystemtap.py src: rewrite systemtap function generator in Python 2019-11-20 14:45:25 +00:00
header-ifdef.py build-aux: rewrite header ifdef checker in Python 2019-11-20 14:45:25 +00:00
minimize-po.py build-aux: rewrite po file minimizer in Python 2019-10-18 13:54:03 +01:00
mock-noinline.py build-aux: rewrite mock inline checker in Python 2019-11-20 14:45:25 +00:00
prohibit-duplicate-header.py scripts: speedup prohibit-duplicate-header 2019-11-22 11:40:52 +01:00