]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: improve sc_long_lines syntax-check speed
authorPádraig Brady <P@draigBrady.com>
Thu, 23 Oct 2014 09:51:22 +0000 (10:51 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 23 Oct 2014 10:29:05 +0000 (11:29 +0100)
commit414a8cf52ff2315e60a86007ffafd1513e5f55c7
treef3d1b4171d3e6c1b37130d5e7d53177c0b9db170
parent193560790ce99061cec50869f79bdcc787ed7783
maint: improve sc_long_lines syntax-check speed

sc_long_lines was the slowest syntax check

before$ time make sc_long_lines
        long_lines
        real    0m2.740s

after $ time make sc_long_lines
        long_lines
        real    0m0.677s

* src/cfg.mk (sc_dd_max_sym_length): s/--max-line-length/-L/
for compat with BSDs.
(sc_long_lines): Prefilter with wc -L to only identify lines
in files that have lines longer than 80 characters.
cfg.mk