in reply to Convert time in seconds to hh::mm::ss

From looking at the link provided by 1nickt I was able to double the speed for times less than 60 seconds (of which there are many) just by adding this line:
return sprintf("00:00:%02d", $seconds) if $seconds < 60;

Replies are listed 'Best First'.
Re^2: Convert time in seconds to hh::mm::ss
by GrandFather (Saint) on Mar 16, 2016 at 05:28 UTC

    Did that make any significant difference at all to the page fetch time?

    Benchmarking becomes interesting after profiling tells you where the significant hot spots are.

    Premature optimization is the root of all job security