Sign in

Writing Fast Python

Photo by Marc-Olivier Jodoin on Unsplash

Introduction

General Guidelines

Avoid premature optimizations

Make sure using the best big-O algorithms

Understand the performance problem

Specific Advice

Know your language and tools

Benchmark tools

Vectorization

Take advantage of the ecosystem

JIT and complied extensions

Go to compiled languages

And beyond

Conclusion

Reference