summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-03-31 02:18:01 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-03-31 02:18:01 (GMT)
commit2c95c99a644a62cd2544dd37be6e04b849b07416 (patch)
tree4a7e9c52eab357f252d2305602b6f5040c4a759f /Python/import.c
parent1e16db6d3b542b5cc146245055be0a04263c4e5e (diff)
downloadcpython-2c95c99a644a62cd2544dd37be6e04b849b07416.zip
cpython-2c95c99a644a62cd2544dd37be6e04b849b07416.tar.gz
cpython-2c95c99a644a62cd2544dd37be6e04b849b07416.tar.bz2
_PyMalloc_Free(): As was already done for _PyMalloc_Malloc, rearranged
the code so that the most frequent cases come first. Added comments. Found a hidden assumption that a pool contains room for at least two blocks, and added an assert to catch a violation if it ever happens in a place where that matters. Gave the normal "I allocated this block" case a longer basic block to work with before it has to do its first branch (via breaking apart an embedded assignment in an "if", and hoisting common code out of both branches).
Diffstat (limited to 'Python/import.c')
0 files changed, 0 insertions, 0 deletions