I want to read a huge text file that contains list of lists of integers. Now I\'m doing the following:
G = [] with open(\"test.txt\", \'r\') as f: for li
You might also try to bring the data into a database via bulk-insert, then processing your records with set operations. Depending on what you have to do, that may be faster, as bulk-insert software is optimized for this type of task.