Commit abde85d3 authored by Toby Dickenson's avatar Toby Dickenson

No need to use a full sweep now. the incremental collector is sufficiently...

No need to use a full sweep now. the incremental collector is sufficiently effective at keeping memory usage in check, and does not have the severe performance implications
parent 25413c22
...@@ -498,7 +498,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -498,7 +498,7 @@ class ZCatalog(Folder, Persistent, Implicit):
# exceeded within the boundaries of the current transaction. # exceeded within the boundaries of the current transaction.
if self._v_total > self.threshold: if self._v_total > self.threshold:
get_transaction().commit(1) get_transaction().commit(1)
self._p_jar.cacheFullSweep(3) self._p_jar.cacheGC()
self._v_total = 0 self._v_total = 0
def uncatalog_object(self, uid): def uncatalog_object(self, uid):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment