summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-11-16 07:44:43 (GMT)
committerGitHub <noreply@github.com>2017-11-16 07:44:43 (GMT)
commit3daaafb700df45716bb55f3a293f88773baf3463 (patch)
tree72e6fe022b82ba7660e82f3561ef991e33a345dd /Misc
parent0a2abdfca2495291809855cf7dfc6721c9c962e3 (diff)
downloadcpython-3daaafb700df45716bb55f3a293f88773baf3463.zip
cpython-3daaafb700df45716bb55f3a293f88773baf3463.tar.gz
cpython-3daaafb700df45716bb55f3a293f88773baf3463.tar.bz2
bpo-32037: Use the INT opcode for 32-bit integers in protocol 0 pickles. (#4407)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2017-11-15-19-04-22.bpo-32037.r8-5Nk.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-11-15-19-04-22.bpo-32037.r8-5Nk.rst b/Misc/NEWS.d/next/Library/2017-11-15-19-04-22.bpo-32037.r8-5Nk.rst
new file mode 100644
index 0000000..d077d0e
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2017-11-15-19-04-22.bpo-32037.r8-5Nk.rst
@@ -0,0 +1,4 @@
+Integers that fit in a signed 32-bit integer will be now pickled with
+protocol 0 using the INT opcode. This will decrease the size of a pickle,
+speed up pickling and unpickling, and make these integers be unpickled as
+int instances in Python 2.