Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys
Date: Wed, 4 Jan 2017 14:52:11 +0800 (PHT)
From: Paul Goyette <paul%whooppee.com@localhost>
Message-ID: <Pine.NEB.4.64.1701041449010.2313%speedy.whooppee.com@localhost>
| Either is possible, although converting to fixed-point fraction is
| marginally more expensive (requires a division vs multiplication).
Compared with the cost of the sys call to retrieve, and then copy out,
the data, one division would be relatively harmless, but here the division
is into a constant (1000000 for the current timeval data source), and
division into a constant is equvalent to multiplication by its reciprocal,
so in this case, it is just changing a multiplication by a small const into
a multiplication by a big one (still probaby a little slower on some arch's.)
| Does anyone else have any preferences? I'd prefer that the next "touch"
| on this be the last one, at least for a while. :)
That is totally understandable - please wait and do it right.
kre
Home |
Main Index |
Thread Index |
Old Index