1 2 3 4 5 6 7 8 9
function main() buf = IOBuffer() for i in 1:500_000 write(buf, 'x') end s = String(take!(buf)) println(length(s)) end main()