[Zope-Checkins] SVN: Zope/branches/zeomega-2.11-memory-fixes/lib/python/DocumentTemplate/DT_In.py Sam suggested tweak to DocumentTemplate to make sure TemplateDict is not holding a reference to the ResultSet. Preliminary testing shows memory usage stabilizes, but more testing is needed to verify (this was tested without any of the changes to Results.py which were introduced in this branch.)
Brad Allen
brad at allendev.com
Thu Feb 4 19:17:56 EST 2010
Log message for revision 108779:
Sam suggested tweak to DocumentTemplate to make sure TemplateDict is not holding a reference to the ResultSet. Preliminary testing shows memory usage stabilizes, but more testing is needed to verify (this was tested without any of the changes to Results.py which were introduced in this branch.)
Changed:
U Zope/branches/zeomega-2.11-memory-fixes/lib/python/DocumentTemplate/DT_In.py
-=-
Modified: Zope/branches/zeomega-2.11-memory-fixes/lib/python/DocumentTemplate/DT_In.py
===================================================================
--- Zope/branches/zeomega-2.11-memory-fixes/lib/python/DocumentTemplate/DT_In.py 2010-02-04 22:45:27 UTC (rev 108778)
+++ Zope/branches/zeomega-2.11-memory-fixes/lib/python/DocumentTemplate/DT_In.py 2010-02-05 00:17:56 UTC (rev 108779)
@@ -710,8 +710,8 @@
finally:
if cache: pop()
- pop()
-
+ pop() #pop the vars...right??
+ del(vars.items) # just in case... vars must die!
return result
def sort_sequence(self, sequence, md):
More information about the Zope-Checkins
mailing list