Super
Super
CC#
Created by Super on 6/2/2023 in #help
❔ ML.NET ForeCasting Related Question
6 replies
CC#
Created by Super on 5/14/2023 in #help
❔ Parallel.ForEach is actually slow
I have a process which I need to run very fast. when running with parallel.foreach (8) (my cpu is 16) it takes 2 minutes. When splitting the data and running it from two seperate EXE processes, it takes 1 minute for both (half time, same data). Anyone knows why? or how can I fix it without running multiple processes? thanks 🙂 Note: changing degree to 16 makes it even slower.
Parallel.ForEach(sfs, new ParallelOptions { MaxDegreeOfParallelism = 8 }, sf =>
{
var success= PerformFromDatabase(sfString);
}
Parallel.ForEach(sfs, new ParallelOptions { MaxDegreeOfParallelism = 8 }, sf =>
{
var success= PerformFromDatabase(sfString);
}
83 replies