- Since seed lines comes with
str
type, comparinggood
column directly with 0 (int
type) in the if statement was not working at all. This is fixed by castingint
type to the values in thegood
column of seeds text file. - Lines that starts with comment in the seeds text file are now ignored.
- If statement for checking bad seeds are moved to the top of the
parseline
function as if a seed is bad; there is no point of going forward from there.
Since this bug-fix eliminates bad seeds over 550k in the first place, in my case; particular job for parsing all seeds speed is up by 600% and whole script’s speed is up by %30.
Note that stats in the terminal are not going to include bad seeds after this fix, which would be the same if this bug were never there before.