To me it looks like a multiplication by 60 is simple enough and doesn't deserve caching. On the other hand, calculating date is tricky as it involves legacy code dating back to the Roman empire. So the OP approach definitely has some grounds. I wonder what benchmark would say though.
Besides, a log file is not always sequential if several applications run at once and buffering is involved.
In reply to Re^2: Special case mktime: semi-sequential access
by Dallaylaen
in thread Special case mktime: semi-sequential access
by not_japh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |