Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b556452

Browse files
committed
Publicize 3.1-specific performance enhancements
1 parent 36f2647 commit b556452

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Doc/whatsnew/3.1.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,27 @@ Some smaller changes made to the core Python language are:
112112

113113

114114
.. ======================================================================
115+
116+
117+
Optimizations
118+
-------------
119+
120+
Major performance enhancements have been added:
121+
122+
* The new I/O library (as defined in :pep:`3116`) was mostly written in
123+
Python and quickly proved to be a problematic bottleneck in Python 3.0.
124+
In Python 3.1, the I/O library has been entirely rewritten in C and is
125+
2 to 20 times faster depending on the task at hand. The pure Python
126+
version is still available for experimentation purposes through
127+
the ``_pyio`` module.
128+
129+
(Contributed by Amaury Forgeot d'Arc and Antoine Pitrou.)
130+
131+
* A new configure flag, ``--with-computed-gotos``, enables a faster opcode
132+
dispatch mechanism on compilers which support it. Speedups of up to 20%
133+
have been observed, depending on the system and compiler.
134+
135+
(Contributed by Antoine Pitrou, :issue:`4753`.)
136+
137+
138+
.. ======================================================================

0 commit comments

Comments
 (0)