]> git.ipfire.org Git - thirdparty/libvirt.git/commit
hvsupport: skip non-matching lines early
authorJán Tomko <jtomko@redhat.com>
Tue, 28 Jun 2016 13:23:58 +0000 (15:23 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 19 Jul 2016 16:50:29 +0000 (18:50 +0200)
commitf1bbf57caddaddeea1141bfab9699a709aa303eb
tree075e0fab06a8a18f1b9d61e2a3c6251c639355ee
parent6dc1f103471518a7f7e2fefaf8f631eb6f2ca922
hvsupport: skip non-matching lines early

Most of the lines we look at are not going to match one of the
driver types contained in $groups_regex.

Move on to the next line if it does not contain any of them early.
This speeds up the script execution by 50%, since this simple regex
does not have any capture groups.
docs/hvsupport.pl