summaryrefslogtreecommitdiffstats
path: root/Modules/makesetup
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-01-24 18:36:27 (GMT)
committerThomas Heller <theller@ctypes.org>2008-01-24 18:36:27 (GMT)
commite4c03e4520cdf0959cb2b0e0cc289cb1e3a0ceb4 (patch)
tree38d004ce25e234a6c3f738189f90cc69adcb492d /Modules/makesetup
parenteead05fdd629063adafe3edda9f1a9ca249f3173 (diff)
downloadcpython-e4c03e4520cdf0959cb2b0e0cc289cb1e3a0ceb4.zip
cpython-e4c03e4520cdf0959cb2b0e0cc289cb1e3a0ceb4.tar.gz
cpython-e4c03e4520cdf0959cb2b0e0cc289cb1e3a0ceb4.tar.bz2
Use a PyDictObject again for the array type cache; retrieving items
from the WeakValueDictionary was slower by nearly a factor of 3. To avoid leaks, weakref proxies for the array types are put into the cache dict, with weakref callbacks that removes the entries when the type goes away.
Diffstat (limited to 'Modules/makesetup')
0 files changed, 0 insertions, 0 deletions