Open tezlm opened 2 years ago
Can we have an update on this issue? It's really bothering me.
You can fix it on the user-side. In classic is-13 fashion, let me present a horribly overcomplicated solution:
Alternatively, calculating 9000 digits of pi takes ~1 second on my machine, so you could just calculate 9000 digits of pi in a loop of X times to wait for X seconds. Your mileage may vary, test it out at http://ajennings.net/pi.html
Alternatively, calculating 9000 digits of pi takes ~1 second on my machine, so you could just calculate 9000 digits of pi in a loop of X times to wait for X seconds. Your mileage may vary, test it out at http://ajennings.net/pi.html
"Your mileage may vary" - we can't have that! On each machine calculating 9000 digits of pi will take vastly different amounts of time which will the UX different for every user. Hell, it will be different between each runs(changing loads on a users machine)!
I suggest implementing a benchmarking function that would get run before every is-13 call. It would try to estimate how many digits of pi you need to calculate before the actual is-13 to get as close to the target time as possible.
it doesnt feel like its doing anything because its running too fast