4 ms·
It's true that if your Python code is being interpreted with CPython then adding type annotations won't make it any faster. But the comment said that if you're
by quietbritishjim 5y ago
It's true that if your Python code is being interpreted with CPython then adding type annotations won't make it any faster. But the comment said that if you're already compiling your Python code with Cython then adding type annotations will allow Cython to make your code a little faster.