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

If media cache is large, Settings > General takes a long time to open #5918

Closed
opusforlife2 opened this issue May 3, 2022 · 1 comment · Fixed by #8086
Closed

If media cache is large, Settings > General takes a long time to open #5918

opusforlife2 opened this issue May 3, 2022 · 1 comment · Fixed by #8086
Assignees
Labels
A-Performance A-Settings O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@opusforlife2
Copy link
Contributor

opusforlife2 commented May 3, 2022

Steps to reproduce

  1. Have a large enough media cache. 100+ MB was enough for my device. Others might need a larger cache.
  2. Open the General menu in Settings. Note the time it takes to open the menu.
  3. Clear media cache.
  4. Open the menu again. Note the drastically reduced time taken for it to open.

Outcome

What did you expect?

The menu should open just as fast as other menus do. And it should take roughly the same time to open on every try.

What happened instead?

With a large enough media cache, the menu takes a long time to open (~5-10 seconds).

A wild guess is that the app doesn't open the menu until it has calculated the media cache, which can take a long time if the cache is large enough, or if the device is old, with slow I/O.

Your phone model

No response

Operating system version

No response

Application version and app store

1.4.11 (F-Droid)

Homeserver

No response

Will you send logs?

No

@opusforlife2 opusforlife2 added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label May 3, 2022
@ouchadam ouchadam added A-Performance S-Minor Impairs non-critical functionality or suitable workarounds exist O-Occasional Affects or can be seen by some users regularly or most users rarely A-Settings labels May 4, 2022
@jcgruenhage
Copy link

Sounds related to, or even like a duplicate of, #5665 to me, and I'm also experiencing this issue, as are a few others I've talked to. Also: this makes the magic CC&R workaround I regularly need due to #5212 a bit worse, as I have to first clear the cache in Androids settings, and then in Element itself.

@opusforlife2 opusforlife2 changed the title If media cache is large, Settings > General take a long time to open If media cache is large, Settings > General takes a long time to open May 30, 2022
@bmarty bmarty self-assigned this Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Performance A-Settings O-Occasional Affects or can be seen by some users regularly or most users rarely S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants