You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our marching squares algorithm, we have a lot of statements that amount to indicesStr = indices.join(','). These make the code a little clearer (you can do a single === to find out if two locations are the same) but have a substantial perf cost:
In our marching squares algorithm, we have a lot of statements that amount to
indicesStr = indices.join(',')
. These make the code a little clearer (you can do a single===
to find out if two locations are the same) but have a substantial perf cost:Lets replace them with straight-up integer comparisons.
The text was updated successfully, but these errors were encountered: