Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: Convert time in seconds to hh::mm::ss

by bangor (Monk)
on Mar 16, 2016 at 02:01 UTC ( [id://1157895]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Convert time in seconds to hh::mm::ss
in thread Convert time in seconds to hh::mm::ss

- What exactly is the issue here?

This is part of a web app where I call an external API and get back a few hundred results and have to do quite a few conversions. I can't speed up the API call so am looking to improve speed anywhere I can. Just thought this might be a likely candidate.
  • Comment on Re^4: Convert time in seconds to hh::mm::ss

Replies are listed 'Best First'.
Re^5: Convert time in seconds to hh::mm::ss
by dsheroh (Monsignor) on Mar 16, 2016 at 09:02 UTC
    This is part of a web app where I call an external API
    Whoa, whoa, whoa... Stop right there!

    Third rule of Optimization Club:
    If your app is running faster than the underlying transport protocol, the optimization is over.

    Networks are slow. CPUs are fast. Each API call is easily taking tens of thousands, if not millions, of times longer than your seconds-to-hh:mm:ss conversion routine. Even if you could optimize that conversion down so that a hundred calls take absolutely no time at all, it still wouldn't make a perceptible dent in the overall speed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1157895]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2026-03-09 09:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.