liquidcarrot / carrot

🥕 Evolutionary Neural Networks in JavaScript
https://liquidcarrot.io/carrot/
MIT License
293 stars 34 forks source link

Replacing threads.js with promises #227

Closed raimannma closed 4 years ago

raimannma commented 4 years ago

I noticed that "parallel" working with promises ist much faster than threads.js even for huge populations.

So I replaced threads.js with promises and Promise.all() at the end of the fitness function.

Maybe try it again with web workers, but I think for now promises are the faster option.