Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It should take 415kB to store a million digit number, and the algorithm only needs to keep two of them. So, 1MB total to calculate a million digits of pi. I wonder if there are a lot of temporary allocations that build up until they get garbage collected.


Not sure what it is exactly, but forcing a garbage collection (using the "minimize memory usage" button in about:memory) doesn't make any difference.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: