musiKk / plyj

A Java parser written in Python using PLY.
Other
150 stars 69 forks source link

made parse_file a bit faster #29

Closed SuperDoxin closed 9 years ago

SuperDoxin commented 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.

musiKk commented 9 years ago

Could not measure any speed improvements but in any case it looks nicer. Thanks!