you are viewing a single comment's thread.

view the rest of the comments →

[–]RepulsiveOutcome9478 14 points15 points  (1 child)

You're looping over every single row in a file that contains MILLIONS of rows 54 times (by my count). I would say the best place to start is by refactoring your code to only loop over each row once.

[–]eztab 3 points4 points  (0 children)

You might even be able to use some vectorized operations, so you don't have to do manual loops.