|
From: | Philip Rowlands |
Subject: | seq, why so slow? |
Date: | Mon, 7 Sep 2009 09:08:41 +0100 (BST) |
User-agent: | Alpine 1.10 (DEB 962 2008-03-14) |
seq.c:257 x = first + i * step; $ time seq 1000000 > /dev/null real 0m1.616s user 0m1.610s sys 0m0.004s $ time ./myseq 1000000 > /dev/null real 0m0.280s user 0m0.275s sys 0m0.005sWould it be possible to detect arguments which require no floating-point, and handle them with integer addition?
Cheers, Phil
[Prev in Thread] | Current Thread | [Next in Thread] |