Skip to content

Commit

Permalink
Merge pull request #80 from JuliaML/lo/change-default-scheduler
Browse files Browse the repository at this point in the history
Change default scheduler for `eachobsparallel`
  • Loading branch information
lorenzoh committed Apr 28, 2022
2 parents 8ad403b + 331a807 commit d11cb69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parallel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ end
# since `ThreadedEx` has shown to be more performant. This may
# change in the future.
# See PR 33 https://github.com/JuliaML/MLUtils.jl/pull/33
_default_executor() = ThreadedEx(basesize=1)
_default_executor() = TaskPoolEx(basesize=1, background=Threads.nthreads() > 1)


# ## Internals
Expand Down

0 comments on commit d11cb69

Please sign in to comment.