summaryrefslogtreecommitdiff
path: root/Python/getplatform.c
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-01-24 18:36:27 +0000
committerThomas Heller <theller@ctypes.org>2008-01-24 18:36:27 +0000
commite4c03e4520cdf0959cb2b0e0cc289cb1e3a0ceb4 (patch)
tree38d004ce25e234a6c3f738189f90cc69adcb492d /Python/getplatform.c
parenteead05fdd629063adafe3edda9f1a9ca249f3173 (diff)
downloadcpython-git-e4c03e4520cdf0959cb2b0e0cc289cb1e3a0ceb4.tar.gz
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 'Python/getplatform.c')
0 files changed, 0 insertions, 0 deletions