Skip to content

Commit

Permalink
Merge pull request #273 from jsm/master
Browse files Browse the repository at this point in the history
Improve multitask performance
  • Loading branch information
hsbt authored Nov 5, 2018
2 parents b5f633a + 137e3f7 commit f0c7528
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rake/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ def invoke_prerequisites_concurrently(task_args, invocation_chain)# :nodoc:
r.invoke_with_call_chain(prereq_args, invocation_chain)
end
end
futures.each(&:value)
# Iterate in reverse to improve performance related to thread waiting and switching
futures.reverse_each(&:value)
end

# Format the trace flags for display.
Expand Down

0 comments on commit f0c7528

Please sign in to comment.