1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00
libvirt/scripts
Ján Tomko 65366bd960 scripts: check-aclrules: use regular expressions less often
Use a simple
  if "substr" in line
before running a regular expression, which saves time,
especially if the regex has a capture group.

This reduces runtime of the check by almost 78 % for me.

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 regular expressions less often 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