]> Savannah Git Hosting - gnulib.git/commit
useless-if-before-free: skip non-matching lines early
authorJán Tomko <jtomko@redhat.com>
Mon, 1 Aug 2016 17:54:47 +0000 (10:54 -0700)
committerJim Meyering <meyering@fb.com>
Tue, 2 Aug 2016 15:07:40 +0000 (08:07 -0700)
commit4f5dc0ac1e08ecc3a2c6eb0e2a8ff526de972b4f
tree6c86ecb9502a2de0f0c2b6fc62c9155629290408
parentb5f24f6fbfba0afb71ed3707c5be611e287315b7
useless-if-before-free: skip non-matching lines early

* build-aux/useless-if-before-free: First match each line with the
simple/quick /\bif\b/ and reject if there is no match. This often
saves the cost of the much more involved regular expression.
For libvirt, this decreases the cost from 1.44s to 1.02s.
ChangeLog
build-aux/useless-if-before-free