3 ms·
That is of course an easy solution but I would argue that this is just throwing more resources at the problem. Not a very impressive optimization. Emery Berger
by superjan 4y ago
That is of course an easy solution but I would argue that this is just throwing more resources at the problem. Not a very impressive optimization.
Emery Berger has a great talk [1] where he argues that it is mostly pointless to optimize python code, if your program is slow, you should look for a properly optimized library to do that work for you.
1: https://www.youtube.com/watch?v=vVUnCXKuNOg https://www.youtube.com/watch?v=vVUnCXKuNOg
- Dunedan 4y ago> That is of course an easy solution but I would argue that this is just throwing more resources at the problem. Not a very impressive optimization. You could say the same about the existing implementation as that reads the whole file into memory instead of processing it in chunks.