[Python-Dev] refleaks and caches (original) (raw)
Christian Heimes lists at cheimes.de
Mon Jan 28 00:37:00 CET 2008
- Previous message: [Python-Dev] refleaks and caches
- Next message: [Python-Dev] refleaks and caches
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Phillip J. Eby wrote:
Expose an API to clear the cache, and clear it at shutdown? It should probably be part of interpreter shutdown anyway.
Good point. I've implemented PyType_ClearCache and exposed it via sys._cleartypecache(). The function is called during finalization, too.
Can somebody please double check the change? The results are promising and I'm sure I've implemented it correctly but you never know ;)
Christian
- Previous message: [Python-Dev] refleaks and caches
- Next message: [Python-Dev] refleaks and caches
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]