pranavtbhat / Graft.jl

Graph Toolkit for Julia
Other
30 stars 5 forks source link

Mpass #6

Closed pranavtbhat closed 8 years ago

pranavtbhat commented 8 years ago

Message Passing takes a lot more time than expected. Checking out master in 0.5 didn't help. Changed message passing interface instead.

Interestingly:

addprocs(1)
rref = RemoteChannel(()->Channel{Any}(typemax(Int)), 2)
@time for i in 1:10000 # took 1.26 seconds
   put!(rref, i)
end

a = [i for i in 1:10000]
@time put!(rref, a)  # Took 0.00075 seconds.

Clearly aggregating messages is the way to go.