Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use lookup table for terrain costs #34

merged 2 commits into from Jan 14, 2019


None yet
2 participants
Copy link

laverdet commented Dec 13, 2018

It seems like every time I'm in this code I find something worth changing. This simple change increases speed by 20-25%. I would have guessed the compiler would do something similar for me automatically but looks like not. The int8_t -> int changes aren't super relevant but they are promoted to int anyway so it's pointless for them to be char types.

@artch artch merged commit 3269d7d into screeps:ptr Jan 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.