libvirt/scripts
Ján Tomko 424a385c3a scripts: speedup prohibit-duplicate-header
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@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 src: rewrite ACL rule checker in Python 2019-11-20 14:45:25 +00: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