I have example:
for line in IN.readlines():
line = line.rstrip('\n')
mas = line.split('\t')
row = ( int(mas[0]), int(mas[1]), mas[2], mas[3], mas[4] )
self.inetnums.append(row)
IN.close()
If ffilesize == 120mb, script time = 10 sec. Can I decrease this time ?
You may gain some speed if you use a List Comprehension
Here is the profile information with two different versions