]> granicus.if.org Git - python/commit
Widespread, but mostly in _PyMalloc_Malloc: optimize away all expensive
authorTim Peters <tim.peters@gmail.com>
Fri, 5 Apr 2002 04:32:29 +0000 (04:32 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 5 Apr 2002 04:32:29 +0000 (04:32 +0000)
commite70ddf3a99e5394faf17d78d0764929ae795b674
tree9f95dfe9c3d7c4bee0f1598e077a8de770fbae33
parentd3dab2b19288139dfa6fc7c4f3302b734573f9dd
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).
Objects/obmalloc.c