Skip to content

Commit

Permalink
Tool execution micro optimization...
Browse files Browse the repository at this point in the history
... Don't create an extra list to reverse, just iterate over in reversed order.
  • Loading branch information
jmchilton committed Dec 3, 2015
1 parent a190b69 commit ab2c7c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/galaxy/tools/actions/__init__.py
Expand Up @@ -178,9 +178,7 @@ def execute(self, tool, trans, incoming={}, return_job=False, set_output_hid=Tru
input_names = []
input_ext = 'data'
input_dbkey = incoming.get( "dbkey", "?" )
inp_items = inp_data.items()
inp_items.reverse()
for name, data in inp_items:
for name, data in reversed(inp_data.items()):
if not data:
data = NoneDataset( datatypes_registry=trans.app.datatypes_registry )
continue
Expand Down

0 comments on commit ab2c7c2

Please sign in to comment.