In my experience it's no faster than other better languages like Go, Rust or Kotlin.
> And for the 1% that aren't, you have 50 different flavors of making it faster.
Only for numerical code. You can't use something like Numpy to make Django or Mercurial faster.
And even when you could feasibly do the thing that everyone says to do - move part of your code to a faster language - the FFI is so painful (it always is) that you are much better just doing everything in that faster language from the start.
All of the effort you have to go through to make Python not slow is far less work than just "don't use Python". You can write Rust without thinking about performance and it will automatically be 20-200x faster than Python.
I actually did rewrite a Python project 1:1 in Rust once and it was approximately 50x faster. I put no effort into optimising the Rust code.
In my experience it's no faster than other better languages like Go, Rust or Kotlin.
> And for the 1% that aren't, you have 50 different flavors of making it faster.
Only for numerical code. You can't use something like Numpy to make Django or Mercurial faster.
And even when you could feasibly do the thing that everyone says to do - move part of your code to a faster language - the FFI is so painful (it always is) that you are much better just doing everything in that faster language from the start.
All of the effort you have to go through to make Python not slow is far less work than just "don't use Python". You can write Rust without thinking about performance and it will automatically be 20-200x faster than Python.
I actually did rewrite a Python project 1:1 in Rust once and it was approximately 50x faster. I put no effort into optimising the Rust code.