peter-ch / MultiNEAT

Portable NeuroEvolution Library
http://MultiNEAT.com
GNU Lesser General Public License v3.0
327 stars 104 forks source link

Make Population.Epoch multithreaded #38

Open Psy-Kai opened 6 years ago

Psy-Kai commented 6 years ago

Is it possible to make the Population.Epoch call mutlithreaded? I played around with this library and found that this call is very slow. Especially the lines

for(unsigned int i=0; i<m_Species.size(); i++)
{
    m_Species[i].Reproduce(*this, m_Parameters, m_RNG);
} 

Is it possible to call Species.Reproduce multithreadded (for every species in the list)?

peter-ch commented 6 years ago

Yeah, it can be multithreaded I guess. It just needs to be implemented.