I'd start by checking how the script handles the data inside the loops. Reading a file line by line isn't necessarily slow, but repeatedly processing the same data or doing unnecessary work inside a loop can add up quickly. I'd also try profiling the script before changing anything, so you can see exactly where the time is going.
games
Leave a comment: