Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Optimization: Neighbor Pre-fetch #10
Uses toroidal matrix for neighbor generation. This results in an extremely significant speed increase in pre-fetching neighbors. On larger grids, neighbor generation could take nearly a minute, but with this change the same size grid it takes miliseconds. The code to actually grab the neighbors isn't the prettiest, but it works great!
This PR also adds the ability to create even smaller squares (for larger fields) which is now possible with decent performance thanks to #8 and this PR. Kind of a hidden feature for now.