diff options
author | Ćukasz Langa <lukasz@langa.pl> | 2018-04-04 06:06:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-04 06:06:53 (GMT) |
commit | c51d8c9ba6211d77db639487501f89aa9b4bcbb1 (patch) | |
tree | cabc297cea85143550c1755cbd9a19ec9c2c2603 /Doc/whatsnew | |
parent | 42ec190761a2e8503aaa06f0bfaaabe98749179b (diff) | |
download | cpython-c51d8c9ba6211d77db639487501f89aa9b4bcbb1.zip cpython-c51d8c9ba6211d77db639487501f89aa9b4bcbb1.tar.gz cpython-c51d8c9ba6211d77db639487501f89aa9b4bcbb1.tar.bz2 |
bpo-23403: Bump pickle.DEFAULT_PROTOCOL to 4 (#6355)
This makes performance better and produces shorter pickles. This change is backwards compatible up to the oldest currently supported version of Python (3.4).
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.8.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index 4e6c851..2f42a9f 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -94,6 +94,9 @@ Improved Modules Optimizations ============= +* The default protocol in the :mod:`pickle` module is now Protocol 4, + first introduced in Python 3.4. It offers better performance and smaller + size compared to Protocol 3 available since Python 3.0. Build and C API Changes ======================= |