Patryk27 / shorelark

Simulation of life & evolution
https://pwy.io/en/posts/learning-to-fly-pt1/
MIT License
207 stars 21 forks source link

refactor(genetic): Improved roulette efficiency #2

Closed javiertury closed 3 years ago

javiertury commented 3 years ago

Use choose_weighted instead of an infinite loop for increased performance and constant time.

Patryk27 commented 3 years ago

Ah, I've refactored some use-s in the meantime and we ended up having conflicts - could you please rebase your branch?

javiertury commented 3 years ago

Now it's ready

javiertury commented 3 years ago

And before this PR is over, let me thank you for creating this project. It covers very interesting topics (deep learning, rust, genetic algorithms) in a clear and simple that anyone can understand.

Patryk27 commented 3 years ago

Thanks, it means a lot!