Re: [libvirt] [PATCHv2 3/3] hvsupport: skip non-matching lines early

2016-07-20 Thread Peter Krempa
On Tue, Jul 19, 2016 at 18:55:54 +0200, Ján Tomko wrote: > 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

[libvirt] [PATCHv2 3/3] hvsupport: skip non-matching lines early

2016-07-19 Thread Ján Tomko
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 |