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 -- https://mail.python.org/mailman/listinfo/python-list