]> granicus.if.org Git - python/commitdiff
Document latest optimizations using _PyBytesWriter
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 14 Oct 2015 08:10:00 +0000 (10:10 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 14 Oct 2015 08:10:00 +0000 (10:10 +0200)
Doc/whatsnew/3.6.rst
Misc/NEWS

index b735e9cb27b72849d0448d099e5bf82a5ad32d04..d1e5045dd9052b45301b31812718cdc95213f424 100644 (file)
@@ -141,16 +141,25 @@ Optimizations
 =============
 
 * The ASCII decoder is now up to 60 times as fast for error handlers:
-  ``surrogateescape``, ``ignore`` and ``replace``.
+  ``surrogateescape``, ``ignore`` and ``replace`` (Contributed
+  by Victor Stinner in :issue:`24870`).
 
 * The ASCII and the Latin1 encoders are now up to 3 times as fast for the error
-  error ``surrogateescape``.
+  error ``surrogateescape`` (Contributed by Victor Stinner in :issue:`25227`).
 
 * The UTF-8 encoder is now up to 75 times as fast for error handlers:
-  ``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass``.
+  ``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass`` (Contributed
+  by Victor Stinner in :issue:`25267`).
 
 * The UTF-8 decoder is now up to 15 times as fast for error handlers:
-  ``ignore``, ``replace`` and ``surrogateescape``.
+  ``ignore``, ``replace`` and ``surrogateescape`` (Contributed
+  by Victor Stinner in :issue:`25301`).
+
+* ``bytes % args`` is now up to 2 times faster. (Contributed by Victor Stinner
+  in :issue:`25349`).
+
+* ``bytearray % args`` is now between 2.5 and 5 times faster. (Contributed by
+  Victor Stinner in :issue:`25399`).
 
 
 Build and C API Changes
index 2700ad323e45bf9d17b4a51006f67585c0c872c1..97e5e7740b869cadaf3dfca28016de4d8ac924fe 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,9 @@ Release date: XXXX-XX-XX
 Core and Builtins
 -----------------
 
+- Issue #25399: Optimize bytearray % args using the new private _PyBytesWriter
+  API. Formatting is now between 2.5 and 5 times faster.
+
 - Issue #25274: sys.setrecursionlimit() now raises a RecursionError if the new
   recursion limit is too low depending at the current recursion depth. Modify
   also the "lower-water mark" formula to make it monotonic. This mark is used
@@ -19,6 +22,7 @@ Core and Builtins
   sys.stdout.fileno() fails.
 
 - Issue #25349: Optimize bytes % args using the new private _PyBytesWriter API.
+  Formatting is now up to 2 times faster.
 
 - Issue #24806: Prevent builtin types that are not allowed to be subclassed from
   being subclassed through multiple inheritance.