Python Fast I/o

Ayushi Dalmia ayushidalmia2604 at gmail.com
Tue Jan 14 08:50:06 EST 2014


I need to write into a file for a project which will be evaluated on the basis of time. What is the fastest way to write 200 Mb of data, accumulated as a list into a file.

Presently I am using this:

with open('index.txt','w') as f:
      f.write("".join(data))
      f.close()

where data is a list of strings which I want to dump into the index.txt file



More information about the Python-list mailing list