Skip to content

Commit

Permalink
Update search_and_matching.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Dec 4, 2024
1 parent be126ac commit a966f50
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/markets/search_and_matching.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@ function search_and_matching!(model, multi_threading = false)
)
end


if multi_threading
Threads.@threads for (i, gs) in enumerate(chunks(1:G; n=Threads.nthreads(), split=RoundRobin()))
Threads.@threads for (i, gs) in enumerate(chunks(shuffle(1:G); n=Threads.nthreads()))
for g in gs
loopBody(i, g)
end
Expand Down

0 comments on commit a966f50

Please sign in to comment.