Commit f45e89c8 authored by Vincent Pelletier's avatar Vincent Pelletier

Revert 21aaeca8.

That change makes no sense latency-wise, iteration will anyway happen
inside "list()". Also, it potentially degrades memory usage.
parent cb0af585
......@@ -108,8 +108,7 @@ if depth == maximum_depth and id_list:\n
else:\n
if id_list is None:\n
if full or not getattr(document, \'isHBTree\', lambda: 0)():\n
#Cast in list to avoid accessing ZODB objects for each iteration\n
id_list = list(document.objectIds())\n
id_list = document.objectIds()\n
if not depth:\n
id_list = tuple(x for x in id_list if x.endswith(\'_module\') or x in [\n
\'portal_alarms\',\n
......
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