commit | e70ddf3a99e5394faf17d78d0764929ae795b674 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Fri Apr 05 04:32:29 2002 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Fri Apr 05 04:32:29 2002 +0000 |
tree | 9f95dfe9c3d7c4bee0f1598e077a8de770fbae33 | |
parent | d3dab2b19288139dfa6fc7c4f3302b734573f9dd [diff] |
Widespread, but mostly in _PyMalloc_Malloc: optimize away all expensive runtime multiplications and divisions, via the scheme developed with Vladimir Marangozov on Python-Dev. The pool_header struct loses its capacity member, but gains nextoffset and maxnextoffset members; this still leaves it at 32 bytes on a 32-bit box (it has to be padded to a multiple of 8 bytes).