Why does it take so long to write to an array with one billion elements in Python?
📝
内容提要
TIL writing one billion elements to an array using python3 takes a jarring 172 seconds. The good news is -OO makes it a bit faster at 80 seconds. pypy3 is even faster at 2.3 seconds.
🏷️