This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2010年12月01日 01:01 by rhettinger, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
Files | ||||
---|---|---|---|---|
File name | Uploaded | Description | Edit | |
cache2.diff | rhettinger, 2010年12月01日 01:07 | Support maxsize=None |
Messages (3) | |||
---|---|---|---|
msg122967 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2010年12月01日 01:01 | |
Nick, I may have found a straight-forward way to incorporate your idea for the cache to support maxsize=None. Let me know what you think. |
|||
msg122969 - (view) | Author: Alyssa Coghlan (ncoghlan) * (Python committer) | Date: 2010年12月01日 01:35 | |
Nice! You may still need to use the lock even for the simple unbounded case though - incrementing hits and misses isn't atomic, so the statistics may be miscounted if you get a hit or miss in different threads at the same time. Alternatively, we could just document the hit/miss statistics as approximate figures for tuning purposes rather than guaranteeing 100% accuracy in all situations. |
|||
msg122977 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2010年12月01日 03:46 | |
Applied in r86911. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022年04月11日 14:57:09 | admin | set | github: 54802 |
2010年12月01日 03:46:15 | rhettinger | set | status: open -> closed resolution: fixed messages: + msg122977 |
2010年12月01日 01:35:59 | ncoghlan | set | messages: + msg122969 |
2010年12月01日 01:07:51 | rhettinger | set | files: - cache.diff |
2010年12月01日 01:07:46 | rhettinger | set | files: + cache2.diff |
2010年12月01日 01:01:44 | rhettinger | create |