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

menu: Makes XBE scanner synchronous. #111

Merged
merged 1 commit into from
Sep 25, 2021

Conversation

abaire
Copy link
Contributor

@abaire abaire commented Sep 24, 2021

Making XBE scanning synchronous until #110 is implemented as the async thread gets starved, leading to multi-minute scan times on a library w/ 160 XBEs.

The downside is that it now takes ~10 extra seconds to get off the initial black screen (presumably this has a direct relationship w/ number of XBEs). The black screen will at least print that a scan is being done so it's not a total user experience disaster :)

std::vector<XBEScanner::XBEInfo> const& items) {
std::list<XBEScanner::XBEInfo> const& items,
long long duration) {
(void)duration;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I'm piping through duration specifically for ease of debugging, I can pull this out and keep it in a side branch if you'd prefer.

@dracc dracc merged commit 47af3f4 into dracc:master Sep 25, 2021
@abaire abaire deleted the temporarily_puts_scanner_on_main_thread branch September 25, 2021 07:39
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