[libvirt] [PATCH 0/2] Speed up syntax-check

Ján Tomko jtomko at redhat.com
Tue Jun 14 13:07:26 UTC 2016


Remove one inefficient regex not applicable to libvirt codebase
and join non-reentrant functions into a single regex to reduce
the time taken by the two slowest syntax-checks:

4.03 unmarked_diagnostics
4.03 vulnerable_makefile_CVE-2009-4029
4.03 size_of_brackets
4.03 spec_indentation
4.33 require_config_h_first
5.88 prohibit_nonreentrant
7.72 prohibit_undesirable_word_seq

This reduces the overall 'make -j9 syntax-check' time for me
from ~8s to ~4.5s.

Ján Tomko (2):
  cfg.mk: override gnulib's undesirable_word_seq check
  cfg.mk: use a single regex for all non-reentrant functions

 Makefile.nonreentrant |  8 ++++++++
 cfg.mk                | 18 ++++++++----------
 2 files changed, 16 insertions(+), 10 deletions(-)

-- 
2.7.3




More information about the libvir-list mailing list