writing large files quickly

superfun at gmail.com superfun at gmail.com
Fri Jan 27 14:16:55 EST 2006


One way to speed this up is to write larger strings:

fd = file('large_file.bin', 'wb')
for x in xrange(51200000):
     fd.write('00000000')
fd.close()

However, I bet within an hour or so you will have a much better answer
or 10. =)




More information about the Python-list mailing list