Commit 7093110c authored by Vincent Pelletier's avatar Vincent Pelletier

Tiny iner-loop optimisation.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@644 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 37935329
......@@ -834,8 +834,9 @@ class Application(object):
# Reorder tids
ordered_tids = []
extend = ordered_tids.extend
for tids in self.local_var.node_tids.values():
ordered_tids.extend(tids)
extend(tids)
# XXX do we need a special cmp function here ?
ordered_tids.sort(reverse=True)
logging.info("UndoLog, tids %s", ordered_tids)
......
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