diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-03-28 19:45:26 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-03-28 19:45:26 (GMT) |
commit | b556452055590c6d8f658d90c6be00aec31f5620 (patch) | |
tree | 3b01039dcaac419b692873a37753f2f9a999a480 | |
parent | 36f26478573531c59f7e39cca6941b388d26d28d (diff) | |
download | cpython-b556452055590c6d8f658d90c6be00aec31f5620.zip cpython-b556452055590c6d8f658d90c6be00aec31f5620.tar.gz cpython-b556452055590c6d8f658d90c6be00aec31f5620.tar.bz2 |
Publicize 3.1-specific performance enhancements
-rw-r--r-- | Doc/whatsnew/3.1.rst | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.1.rst b/Doc/whatsnew/3.1.rst index 56e5869..40d7afd 100644 --- a/Doc/whatsnew/3.1.rst +++ b/Doc/whatsnew/3.1.rst @@ -112,3 +112,27 @@ Some smaller changes made to the core Python language are: .. ====================================================================== + + +Optimizations +------------- + +Major performance enhancements have been added: + +* The new I/O library (as defined in :pep:`3116`) was mostly written in + Python and quickly proved to be a problematic bottleneck in Python 3.0. + In Python 3.1, the I/O library has been entirely rewritten in C and is + 2 to 20 times faster depending on the task at hand. The pure Python + version is still available for experimentation purposes through + the ``_pyio`` module. + + (Contributed by Amaury Forgeot d'Arc and Antoine Pitrou.) + +* A new configure flag, ``--with-computed-gotos``, enables a faster opcode + dispatch mechanism on compilers which support it. Speedups of up to 20% + have been observed, depending on the system and compiler. + + (Contributed by Antoine Pitrou, :issue:`4753`.) + + +.. ====================================================================== |