1. Such a useful article. It spurred a little further research. Appending items to a list and using my_outputfile_object.writelines(my_list_object) was far quicker than my previous “append-to-giant-string then write string to file” technique for a half million line log file. Six thousand times quicker, according to my timing tests! Just had to remember to tack a ‘\n’ on the end of each string appended to the list! Thanks, you made my day.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.