Implement iteration optimization
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 13 Sep 2024 10:20:36 +0000 (12:20 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 13 Sep 2024 10:20:36 +0000 (12:20 +0200)
commitefc899c56858ccd5bd8681dff5501aa3c0df2cca
tree8cf005a54324333271d2981277be92faf73fdc98
parent83678252b1af3a208de6fab1f55512524cf49244
Implement iteration optimization

Instead of checking every element of a
heightmap for eligibility to process,
only the elements neighbouring just
processed elements are checked.
This cuts the time to roughly a third.
povodi.py