anopara / genetic-drawing

A genetic algorithm toy project for drawing
MIT License
2.18k stars 196 forks source link

reduce processing time #3

Open akashdexati opened 4 years ago

akashdexati commented 4 years ago

Hi @anopara

The program takes too long at line out = gen.generate(100, 20) Is there a way to reduce the processing time apart from reducing the number of iterations ?

anopara commented 4 years ago

Hi @akashdexati

You can disable matplotlib plotting the image after every generation, that would speed it up somewhat.

Otherwise, exactly 0 effort has been spent on optimization since it was just a toy exercise 🙂