Skip to content

Use lookup table for terrain costs#34

Merged
artch merged 2 commits intoscreeps:ptrfrom
laverdet:lookups
Jan 14, 2019
Merged

Use lookup table for terrain costs#34
artch merged 2 commits intoscreeps:ptrfrom
laverdet:lookups

Conversation

@laverdet
Copy link
Contributor

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments