# Best way to parallelize

**URL:** https://discourse.julialang.org/t/best-way-to-parallelize/85992
**Category:** Julia at Scale
**Tags:** parallel, linearalgebra, sparse
**Created:** [August 19, 2022, 9:25am UTC](https://discourse.julialang.org/t/best-way-to-parallelize/85992 "2022-08-19T09:25:26Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [August 19, 2022, 9:43am UTC](https://discourse.julialang.org/t/best-way-to-parallelize/85992/5 "2022-08-19T09:43:42Z")

</div>

You may want to limit the number of batches to the number of threads and increase the workload on each batch. This can be done by hand, but I have the impresion that FLoops.jl can handle that case nicely.

See: [Sum result of Threads.foreach() - #10 by tkf](https://discourse.julialang.org/t/sum-result-of-threads-foreach/76701/10)

---

_[View the full topic](https://discourse.julialang.org/t/best-way-to-parallelize/85992)._
