computablee / DotMP

A collection of powerful abstractions for parallel programming in .NET with an OpenMP-like API.
https://computablee.github.io/DotMP/
GNU Lesser General Public License v2.1
29 stars 8 forks source link

[PERFORMANCE] Optimize `Parallel.For` and `Parallel.ForReduction` #16

Open computablee opened 1 year ago

computablee commented 1 year ago

After running some benchmarks with ConjugateGradient (which involves lots of lightweight parallel-for's), I've noticed that the performance of Parallel.For and Parallel.ForReduction are really bad. I plan on doing a heavy optimization session this weekend, but I'm opening this issue just so it's on record.