11 Pythonic Ways to Optimise your Code
Good practice that might also lead to good performance.
When optimising Python code, it is generally best to concentrate your efforts on identifying the true bottlenecks in your code and speeding those areas up.
But are is one exception. Certain coding techniques fall under the category of good practice and might also speed up your code. You should do these things anyway…