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).
[ Parent
| on HN ]
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.