The stupid question is the question not asked | |
PerlMonks |
Re: Simple date and time manipulationby sundialsvc4 (Abbot) |
on Jan 19, 2011 at 13:17 UTC ( [id://883114]=note: print w/replies, xml ) | Need Help?? |
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.”
In Section
Seekers of Perl Wisdom
|
|