4 ms·
That is interesting. As a side note, I'll bet you could have actually observed the difference via timing at the time, assuming you knew what hardware you were
by mistercow 13y ago
That is interesting.
As a side note, I'll bet you could have actually observed the difference via timing at the time, assuming you knew what hardware you were working on. On an early Pentium, a floating point add would have taken up to 3 times as long as an integer add (depending on implementation), so by comparing in a loop, you might be able to tell if a given value was being treated as an integer or a double.
- gsnedders 13y agoYou still can — now the dispatch overhead is ever closer to zero, the cost of the operation is even more apparent.