diff options
author | Sjoerd Mullender <sjoerd@acm.org> | 1993-10-15 16:18:48 (GMT) |
---|---|---|
committer | Sjoerd Mullender <sjoerd@acm.org> | 1993-10-15 16:18:48 (GMT) |
commit | 842d2ccdcd540399501a918b9724d2eaf5599f39 (patch) | |
tree | a62399047b129d4fe4f5db57a925fa7f135cabd2 /Include | |
parent | 21d335ed9ef6fbb16341809fe224b45a3f41243f (diff) | |
download | cpython-842d2ccdcd540399501a918b9724d2eaf5599f39.zip cpython-842d2ccdcd540399501a918b9724d2eaf5599f39.tar.gz cpython-842d2ccdcd540399501a918b9724d2eaf5599f39.tar.bz2 |
intobject.c: Save references to small integers, so that they can be
shared. The default is to save references to the integers in
the range -1..99. The lower limit can be set by defining
NSMALLNEGINTS (absolute value of smallest integer to be saved)
and NSMALLPOSINTS (1 more than the largest integer to be
saved).
tupleobject.c: Save a reference to the empty tuple to be returned
whenever a tuple of size 0 is requested. Tuples of size 1
upto, but not including, MAXSAVESIZE (default 20) are put in
free lists when deallocated. When MAXSAVESIZE equals 1, only
share references to the empty tuple, when MAXSAVESIZE equals
0, don't include the code at all and revert to the old
behavior.
object.c: Print some more statistics when COUNT_ALLOCS is defined.
Diffstat (limited to 'Include')
0 files changed, 0 insertions, 0 deletions