Since Time::Piece always works from an epoch time, the algorithm could help it assuming it doesn't slow down also getting hours, minutes and seconds.
That said, you could get far larger savings by converting Time::Piece to C.
In reply to Re: A Very Fast 64–Bit Date Algorithm
by ikegami
in thread A Very Fast 64–Bit Date Algorithm
by mldvx4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |