I have quite a few text files of +- 4 GB, and when I read them at once in Python it gives me an MemoryError (although looking at PC performance it doesn't come even close to the max memory). When iterating through the file the script becomes much much slower. Does anyone have a solution how to easily read such large files in an fast way? Or to Increase the memory limit in Python?
Thanks.