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 7 forks source link

Optimize `Schedule.Static` #14

Closed computablee closed 1 year ago

computablee commented 1 year ago

Going through the code for Schedule.Static, realize it's really inefficient with lots of redundant function calls. Function calls are pretty expensive in C# last I tested, so it would be nice if we could roll a lot of the code into a single function with no extra calls. Please make sure to benchmark to make sure that it's actually faster. I haven't done any real testing with it, but I imagine it can be improved quite a lot. If you want me to assign you to this, please make sure that you're willing and able to write some benchmarks!