RAMCacheManager optimizations
Bug #143530 reported by
Florent Guillaume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
RAMCacheManager pickles the objets put in the cache to ensure they won't have any problem being used by another thread.
This should be done only in debug mode.
Inconvenient: in non-debug mode, the ZMI wouldn't be able to display the used size. As it's only used for reporting (and not for enforcing maximum size), it may not be too much of a problem. And if it is, we could lazily pickle to get the size only when ZMI is accessed.
To post a comment you must log in.
I don't see why disabling this safety mechanism in production mode would be acceptable.