Serhiy Storchaka added the comment:

Here is a revised patch. It is synchronized with tip. Got rid of capsules (sped 
up about 10%). lru_list_elem is now true Python object. Got rid of the lock, 
the new code must be thread-safe with GIL only.

I very much hope that this code will be included in 3.4. We can fix bugs later 
if there are any. I am also planning to optimize the make_key() functions.

----------
priority: low -> high
Added file: http://bugs.python.org/file32779/clru_cache.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14373>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to