[Tutor] Load Entire File into memory

Peter Otten __peter__ at web.de
Mon Nov 4 14:41:11 CET 2013


Amal Thomas wrote:

> Yes I have found that after loading to RAM and then reading lines by lines
> saves a huge amount of time since my text files are very huge.

How exactly did you find out? You should only see a speed-up if you iterate 
over the data at least twice.



More information about the Tutor mailing list