giacomelli / GeneticSharp

GeneticSharp is a fast, extensible, multi-platform and multithreading C# Genetic Algorithm library that simplifies the development of applications using Genetic Algorithms (GAs).
MIT License
1.26k stars 330 forks source link

TplTaskExecutor seems not occupying enough CPU #107

Closed AnakinCN closed 1 year ago

AnakinCN commented 1 year ago

When I use TplPopulation, TplOperatorsStrategy and TplTaskExecutor, I watched my CPU, only around 30% is used most of the time.

I've already set MinThreads to 24 and MaxThreads to 128, it doesn't seem working.

My GA is a evaluation-heavy one, costs most the workload calculating the Fitness. How can I increase CPU percentage to accelerate GA?

AnakinCN commented 1 year ago

I checked the code, there is really nothing more TplTaskExecutor could do to keep CPU busy.