bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/4] Speed up syntax-check


From: Ján Tomko
Subject: [PATCH 0/4] Speed up syntax-check
Date: Tue, 26 Jul 2016 16:28:13 +0200

Some checks take a long time on libvirt's codebase:
2.72 sc_po_check
1.64 avoid_if_before_free
1.57 sc_prohibit_doubled_word
1.05 sc_require_config_h_first

For po_check and require_config_h_first, rewrite some logic in perl
instead of shell/grep/sed to make it faster.

For the perl-based avoid_if_before_free and sc_prohibit_doubled_word,
adjust the regular expressions to avoid capture groups in most cases.

These changes speed up libvirt's 'make -j5 syntax-check' on a quad-core
laptop from 9.12s to 7.88s, saving about 1.25s.

Ján Tomko (4):
  maint.mk: speed up po_check
  maint.mk: expand the prohibit_doubled_word regex
  maint.mk: speed up require_config_h_first
  useless-if-before-free: skip non-matching lines early

 ChangeLog                        | 33 ++++++++++++++++++++
 build-aux/useless-if-before-free |  3 ++
 top/maint.mk                     | 67 ++++++++++++++++++++++++++--------------
 3 files changed, 80 insertions(+), 23 deletions(-)

-- 
2.7.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]