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

Wallet freezes momentarily when voting tab is opened. #1955

Closed
nathanielcwm opened this issue Nov 3, 2020 · 4 comments · Fixed by #2041 or #2039
Closed

Wallet freezes momentarily when voting tab is opened. #1955

nathanielcwm opened this issue Nov 3, 2020 · 4 comments · Fixed by #2041 or #2039
Assignees
Labels

Comments

@nathanielcwm
Copy link
Contributor

Freezing is exhibited starting from around 2 seconds after the voting tab had been selected until the polls have been loaded.

I believe that this was also an issue on 5.0.2 but I haven't tested it yet.

Nothing is added to any of the log files.

Wallet 5.1.0
Windows 10 20H2
Ryzen 3600

@jamescowens
Copy link
Member

@cyrossignol can comment, but I think this is just because loading the contracts for the poll information is heavyweight, and state lock must be held during that time.

@cyrossignol
Copy link
Member

Yep, the wallet reexamines the vote contracts to readjust weight for people who spend their coins after their original vote, so it takes more effort for the wallet to recalculate poll results for older polls. I'm working on a caching strategy to cut down the delay.

@jamescowens
Copy link
Member

The above partially address this issue. It will remain open until we implement a poll/vote cache.

@cyrossignol
Copy link
Member

#2137 fixes the blocked GUI thread. Future voting cache optimizations will reduce the reload wait time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment