summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2008-12-06 15:33:31 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2008-12-06 15:33:31 (GMT)
commitfd24b323f9998d34669c84ba0d5c3dbd827bdc17 (patch)
tree3dc02b46aa6ed7bd71f1cf96f00fb2041c272e6e /Misc
parent17fe364b44c31c88a49f7d1d24efa7cdce8b6ccd (diff)
downloadcpython-fd24b323f9998d34669c84ba0d5c3dbd827bdc17.zip
cpython-fd24b323f9998d34669c84ba0d5c3dbd827bdc17.tar.gz
cpython-fd24b323f9998d34669c84ba0d5c3dbd827bdc17.tar.bz2
Issue #4445: save 3 bytes of memory (on average) per bytes allocation.
(This is a forward port of r67601).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 3dd58e6..472751f 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,11 @@ What's New in Python 3.1 alpha 0
Core and Builtins
-----------------
+- Issue #4445: Replace "sizeof(PyBytesObject)" with
+ "offsetof(PyBytesObject, ob_sval) + 1" when allocating memory for
+ bytes instances. On a typical machine this saves 3 bytes of memory
+ (on average) per allocation of a bytes instance.
+
- Issue #4533: File read operation was dreadfully slow due to a slowly
growing read buffer. Fixed by using the same growth rate algorithm as
Python 2.x.