diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-21 09:38:58 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-21 09:38:58 (GMT) |
commit | fac395681fb758401d17974f258b17d285336c57 (patch) | |
tree | a8cc198b2211687af8a7f14222b9e06d620cd3d6 /Doc | |
parent | 51b846c47a9b1db927939ccfb037a5a0ff6ff99c (diff) | |
download | cpython-fac395681fb758401d17974f258b17d285336c57.zip cpython-fac395681fb758401d17974f258b17d285336c57.tar.gz cpython-fac395681fb758401d17974f258b17d285336c57.tar.bz2 |
Optimize bytes.replace(b'', b'.')
Issue #26574: Optimize bytes.replace(b'', b'.') and
bytearray.replace(b'', b'.'): up to 80% faster. Patch written by Josh Snider.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.6.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst index 9046058..986c145 100644 --- a/Doc/whatsnew/3.6.rst +++ b/Doc/whatsnew/3.6.rst @@ -339,6 +339,9 @@ Optimizations * Optimize :meth:`bytes.fromhex` and :meth:`bytearray.fromhex`: they are now between 2x and 3.5x faster. (Contributed by Victor Stinner in :issue:`25401`). +* Optimize ``bytes.replace(b'', b'.')`` and ``bytearray.replace(b'', b'.')``: + up to 80% faster. (Contributed by Josh Snider in :issue:`26574`). + Build and C API Changes ======================= |