News for hackers. Stuff that matters.
Re:A Million Digits of Pi in 9 Lines of JavaScript by ajennings on Thursday September 12, 2019 @08:30PM (#20957925)
I didn't note timing numbers, but rendering digits in hex was basically instantaneous, even when doing a million (decimal) digits.

Rendering the digits in decimal was significant delay (like 40 seconds for a million digits). That's why it just shows the hex until the very end, and it shows how long the decimal conversion takes.

Re:A Million Digits of Pi in 9 Lines of JavaScript by zamadatix on Friday September 13, 2019 @08:14AM (#20961367)
You sure you don't mean converting digits to hex instead of rendering? The constant rendering of the hex digits as the work progresses results in a ~3x slowdown for 100k digits in my testing (see my other comment in this tree).
Re:A Million Digits of Pi in 9 Lines of JavaScript by ajennings on Friday September 13, 2019 @11:58AM (#20963259)
Maybe you're right. I know displaying in hex was way faster than displaying in decimal and seemed fast enough, so I stopped there. I didn't test rendering speed specifically.

Doing a million digits in the console (with no status updates) took about an hour and doing it in that page took just over two hours.