Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
xurukefi
· 9y ago · 0 comments
import sys while True: sys.stdout.write("y\n" * 2**16)
gives me over 4GiB/s
Comments
[–]
omlettehead
9y ago
Sure, but you're building strings in memory. It might not be a lot of memory, especially if you're able to run Python, but the native `yes` command can run on the smallest of embedded systems, which is why its speed is impressive.