]> git.ipfire.org Git - thirdparty/coreutils.git/commit
numfmt: improve processing throughput by 800%
authorPádraig Brady <P@draigBrady.com>
Fri, 2 May 2014 00:23:21 +0000 (01:23 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 2 May 2014 01:02:20 +0000 (02:02 +0100)
commitbe9f38bf6c7c228bc0d749703060228b16793167
treed006fc1e14882ff39a258e6016c0cfcb839aabc6
parent10a96524355775e6d8533555f185656c7f29075c
numfmt: improve processing throughput by 800%

The devmsg() calls that took quote_n() arguments,
didn't normally output anything, but still incurred
the overhead of those quote_n() calls.

* src/numfmt.c (devmsg): Move the inline function
with _internal_ enablement check to...
* src/system.h: ...here as a variadic macro, with
the enablement check at the outer level.
* src/factor.c: As per numfmt.c but there is no
performance change in this case.
* NEWS: Mention the significant performance improvement.
NEWS
src/factor.c
src/numfmt.c
src/system.h