Now that Python 3.11 is more powerful and smarter thanks to CPython, can we now say that Python is not overrated?
Python programming languages ​​release new versions every year. A locked beta is available in the first half of the year. The final release occurs at the end. A beta version of Python 3.11 is now available for testing. This non-production code allows developers to test and ensure that it works with their programs. You can also see if the performance improvements will benefit your code.

Python 3.11 also has less overhead for Python function calls. Stack frames for the function call now require less memory and are better designed. Recursive calls in Python are not tail-optimized, but they are still more efficient than previous versions. The Python interpreter also runs faster, and the core modules required for running Python can be stored and loaded more efficiently.

Python 3.11 is 1.25 times faster than 3.10. This acceleration is an average measurement. Some things work faster than others, while others are slightly faster or the same. These upgrades are free which is the best thing about them. To take advantage of the speedups of 3.11, you don’t need to modify the Python code.

According to the news, performance improvements can only be achieved by benefiting from Faster CPython, a smartly developed Microsoft-funded project. Faster CPython has a default interpreter called ‘CPython. This interpreter uses just-in-time compiler technology to find the most advantageous code. This allows statements in code objects that have been executed to be framed by a new statement. This new instruction is executed faster. All Python runs faster because of it.

Introduction to CPython
CPython, the reference implementation of the Python programming language, is available. CPython, written in Python and C, is the default and most commonly used Python implementation. CPython is both an interpreter and a compiler. It compiles Python code into bytecode and then interprets it. It also has a foreign function interface that can be used with many languages, including C. To use this interface requires specifying bindings in a language other than Python.

Python 3.11 was the first release to receive a Faster CPython project, in which CPython serves as the standard release. Faster CPython, a Microsoft project, has three members: Python inventor Guido van Rossum and Eric Snow (a senior Microsoft software engineer) – who is under contract with Microsoft as the technical lead for this project.

Here are some of the features of Python 3.11
Python 3.11 will probably have better feature for locating errors in tracebacks. This would help identify the syntax or object that caused the error.

The CPython interpreter in version 3.11 has been optimized and is faster than version 3.10. CPython 311 runs on average 1.22 times faster than CPython 310. This is based on the benchmark suite, compiled with GCC on Ubuntu Linux. Acceleration may vary depending on workload.

To speed up module loading, Python 3.11 will cache bytecode in its psychache directory. In Python 3.11, interpreter startup will be 10-15% faster.

Frames are created in Python when Python calls a Python user-defined function. This frame contains information on the execution of the function. Version 3.11 includes framework optimizations that make it run faster.

Python 3.11 has one thing that is not possible with Python: recursive functions are not tail-optimized. Stack frames for function calls in Python 3.11 are better designed and use less memory. This means Python function calls take less effort in Python 3.11.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée.