Skip to content

Commit

Permalink
Optimize the generic move
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsamaroo committed Aug 14, 2020
1 parent 69983f8 commit 4f6c8ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/processor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ The default implementation breaks a single `move` call down into a sequence of
`move` calls, and is not intended to be maximally efficient.
"""
function move(ctx, from_proc::Processor, to_proc::Processor, x)
if from_proc == to_proc
return x
end
@debug "Initiating generic move"
# Move to remote OSProc
@debug "(Remote) moving $parent_proc to $grandparent_proc"
Expand Down

0 comments on commit 4f6c8ff

Please sign in to comment.