DotMP icon indicating copy to clipboard operation
DotMP copied to clipboard

[PERFORMANCE] Use `ConcurrentDictionary` for `Single`/`Ordered`/`Critical`

Open computablee opened this issue 1 year ago • 0 comments

Identify the function(s) which are causing performance issues.

The current implementations of Parallel.Single/Ordered/Critical are locking a dictionary before modifying it. We can use a similar approach from the tasking system and use ConcurrentDictionary classes to implement lock-free modifications.

Describe the performance expected vs. performance observed.

Performance metrics still need to be measured. A comprehensive evaluation should be provided when a corresponding PR is opened.

computablee avatar Dec 07 '23 03:12 computablee