Closed SuperDoxin closed 9 years ago
I changed the parse_file function to read the file in one go instead of line-by-line. this prevents a lot of string concatenation which is slow in python.
as an added bonus: it's more readable now too.
Could not measure any speed improvements but in any case it looks nicer. Thanks!
I changed the parse_file function to read the file in one go instead of line-by-line. this prevents a lot of string concatenation which is slow in python.
as an added bonus: it's more readable now too.