Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Cumulative Guessing JAPH

by jszinger (Scribe)
on Jan 07, 2021 at 18:18 UTC ( #11126545=note: print w/replies, xml ) Need Help??


in reply to Cumulative Guessing JAPH

This is really fun to watch and was fun to decipher.

Why would this take a long time on an old PC?

The number of iterations is independent of CPU speed, and each iteration has a deliberate delay. In my testing, even on my slowest PC, CPU time is less than 10% of wall clock time, and the delay code itself consumes over 90% of the CPU time.

Replies are listed 'Best First'.
Re^2: Cumulative Guessing JAPH
by kschwab (Vicar) on Jan 07, 2021 at 19:12 UTC

    Why would this take a long time on an old PC?

    Yes, it's wouldn't. Just encouraging people to wait it out, it can run more than 10 seconds or so.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2021-09-26 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?