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

Proper unvisited member report fix #35079

Merged

Conversation

esotericist
Copy link
Contributor

Summary

SUMMARY: Infrastructure "Proper unvisited member report fix"

Purpose of change

the config option for unvisited member reports introduced in #35065 can cause a crash on quit due to how things get unloaded at quit time.

also, the use of config options that defaulted off caused the unvisited member reports to not be run in CI, which was apparently a key purpose of that functionality.

Describe the solution

revert #35065
make the unvisited member reports only run when test_mode is true, which should only be the case when running the test suite

Describe alternatives you've considered

my original attempt at this was #35073, which worked for the crash error, but did not address the fact this test need to run in CI

Testing

loaded a save game (to confirm the slowdown was gone)
ran tests with this change (to confirm tests still work)
ran tests with an older version of master where the unvisited member reports were unconditional (which verified the time was the same)
ran tests with master as of this writing where unvisited member reports are conditional based on config options (which verified the time was slightly faster)

Additional context

Well, I learned things, even if they ended up not being applicable.

@esotericist esotericist 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 Oct 27, 2019
@kevingranade kevingranade merged commit 7d8178d into CleverRaven:master Oct 27, 2019
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.

3 participants