Skip to content

Commit

Permalink
Merge pull request JuliaLang#11939 from JuliaLang/anj/sendmsg
Browse files Browse the repository at this point in the history
Avoid that type inference runs each time a message is sent by wrapping args in a Vector
  • Loading branch information
amitmurthy committed Jun 30, 2015
2 parents 147fa0b + c70368e commit 8a49356
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions base/multi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ function flush_gc_msgs(w::Worker)
msgs = copy(w.add_msgs)
if !isempty(msgs)
empty!(w.add_msgs)
remote_do(w, add_clients, msgs...)
remote_do(w, add_clients, msgs)
end

msgs = copy(w.del_msgs)
if !isempty(msgs)
empty!(w.del_msgs)
#print("sending delete of $msgs\n")
remote_do(w, del_clients, msgs...)
remote_do(w, del_clients, msgs)
end
end

Expand Down Expand Up @@ -471,7 +471,7 @@ function del_client(pg, id, client)
nothing
end

function del_clients(pairs::Tuple{Any,Any}...)
function del_clients(pairs::Vector)
for p in pairs
del_client(p[1], p[2])
end
Expand Down Expand Up @@ -507,7 +507,7 @@ function add_client(id, client)
nothing
end

function add_clients(pairs::Tuple{Any,Any}...)
function add_clients(pairs::Vector)
for p in pairs
add_client(p[1], p[2])
end
Expand Down

0 comments on commit 8a49356

Please sign in to comment.