Optimize grid.replace to not do string parsing but just set numbers directly. Leads to 20% improvement in BenchmarkGridCopy and 10% improvement in BenchmarkHumanSolve. This showed up as a bottleneck in profiles.
Optimize grid.replace to not do string parsing but just set numbers directly. Leads to 20% improvement in BenchmarkGridCopy and 10% improvement in BenchmarkHumanSolve. This showed up as a bottleneck in profiles.

jkomoros/sudoku,jkomoros/sudoku,jkomoros/sudoku