Yeah, that’s a pretty typical thing when you move from small to bigger files. sports games
In most cases it is about what you’re doing inside loops, not just the file reading itself. Reading line by line is usually fine in Python, but if you’re doing something expensive for every line (or worse, looping over the data multiple times), it adds up fast.
When I ran into this early on, the biggest slowdown was me accidentally reprocessing...