easystarjs icon indicating copy to clipboard operation
easystarjs copied to clipboard

setDirectionalCondition can be more efficient if a Set is used

Open esromneb opened this issue 5 years ago • 1 comments

The check for directional conditions uses a loop and would be much more efficient with a Set. Is this something you would accept a PR for?

esromneb avatar Oct 26 '20 09:10 esromneb

Ah I see. Yes the directions themselves are a list of directions. We could make them a set. I think it's worthwhile.

prettymuchbryce avatar Nov 19 '20 03:11 prettymuchbryce