d7b1290379853b250185f180a67832c437f792f8
Grid::next_pos was starting its scan from the position after the current one. This is inefficient as we know how large the square we've just placed is as we scan those positions. This optimisation just skips that square when starting the scan.
Languages
C++
69.2%
Python
29.2%
CMake
1.6%