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

Speedup move test #36664

Merged
merged 2 commits into from
Jan 4, 2020
Merged

Conversation

kevingranade
Copy link
Member

Summary

SUMMARY: None

Purpose of change

I noticed the monster speed tests were running for a long time.

Describe the solution

Don't excessively clear the map during these tests.

Testing

Tests still pass, but much much faster.
Perf says we aren't spending a significant amount of time in map manipulation anymore, the only time spent now is in monster::move and monster::can_move, but it's too tiny to go after right now.

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Code: Performance Performance boosting code (CPU, memory, etc.) Code: Tests Measurement, self-control, statistics, balancing. labels Jan 3, 2020
@ZhilkinSerg ZhilkinSerg merged commit c47e299 into CleverRaven:master Jan 4, 2020
@jbytheway
Copy link
Contributor

The clear_traps is important. See #30266.

ZhilkinSerg added a commit that referenced this pull request Jan 10, 2020
kevingranade pushed a commit that referenced this pull request Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Performance Performance boosting code (CPU, memory, etc.) Code: Tests Measurement, self-control, statistics, balancing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants