summaryrefslogtreecommitdiff
path: root/src/make-prime-list.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-09-18 08:26:17 +0200
committerJim Meyering <meyering@redhat.com>2012-10-04 22:09:00 +0200
commit06b7ed8051d07677572e074d3d45007f1282ed56 (patch)
tree95b309bfc6cb3ce60867f162d003300131de3522 /src/make-prime-list.c
parent759ebcb57db73449b5670204f85931d34881b7d2 (diff)
downloadcoreutils-06b7ed8051d07677572e074d3d45007f1282ed56.tar.xz
factor: 25% speed-up, on output
* src/factor.c (print_factors_single): Use fputs and umaxtostr rather than printf with "%ju". This reduced the time required to compute and print the factors of the first 10^7 integers from over 8 seconds to 5.75s. Run this command: seq $((10**7)) | env time factor > /dev/null
Diffstat (limited to 'src/make-prime-list.c')
0 files changed, 0 insertions, 0 deletions