diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-12-06 15:33:31 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-12-06 15:33:31 (GMT) |
commit | fd24b323f9998d34669c84ba0d5c3dbd827bdc17 (patch) | |
tree | 3dc02b46aa6ed7bd71f1cf96f00fb2041c272e6e /Misc | |
parent | 17fe364b44c31c88a49f7d1d24efa7cdce8b6ccd (diff) | |
download | cpython-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/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. |