in reply to Simple date and time manipulation
I would cordially argue that your reasoning (that it is “slow”) is quite un-sustainable. And it would remain so, even if you had a billion trackpoints to write.
This program is, and always will be, I/O bound. Its completion rate will always be wholly and completely driven by the speed and efficiency of the input/output hardware. Meanwhile, I am quite sure that it could be demonstrated that the CPU could complete one billion date/time calculations in far less than one second’s time ... and I am being generous in my estimation.
Write the computational code in the simplest, clearest, and most-general way that you can.
“Don’t diddle the code to make it faster.”
– The Elements of Programming Style
Replies are listed 'Best First'. | |
---|---|
Re^2: Simple date and time manipulation
by Corion (Patriarch) on Jan 19, 2011 at 13:43 UTC | |
by BrowserUk (Patriarch) on Jan 19, 2011 at 14:07 UTC | |
Re^2: Simple date and time manipulation
by BrowserUk (Patriarch) on Jan 19, 2011 at 13:31 UTC |