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

perf(admin): unload admin panel when leaving it to preserve performance #16425

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jrainville
Copy link
Member

What does the PR do

Iterates #16043

By unloading the admin panel when leaving it, we can free the memory and also make sure that further updates to the community don't try to update the invisible models from the admins panels, some of which are very heavy.

The downside is that if you were in a particular screen in the admin panel, go back to the community to answer a message or retrieve an address, you will have lost your state.
However, I got Jen's blessing to do this change, as she is having a lot of issues with memory and performance currently.

Later, when we have upgraded all models and proxies, we might want to revert this change.

Affected areas

Admin Panel (especially when leaving and going back)

Architecture compliance

  • I am familiar with the application architecture and agreed good practices.
    My PR is consistent with this document: Architecture guidelines

Impact on end user

better performance when the admin tab is closed with the tradeoff of losing the last state.

How to test

  1. Go to the admin panel
  2. Go to a screen
  3. Leave it
  4. Go back to it
    See that we are back at the Overview

Risk

Tick one:

  • Low risk: 2 devs MUST perform testing as specified above and attach their results as comments to this PR before merging.
  • High risk: QA team MUST perform additional testing in the specified affected areas before merging.

No risk

Iterates #16043

By unloading the admin panel when leaving it, we can free the memory and also make sure that further updates to the community don't try to update the invisible models from the admins panels, some of which are very heavy.
@jrainville jrainville requested review from a team, iurimatias, osmaczko and micieslak and removed request for a team September 27, 2024 17:45
@status-im-auto
Copy link
Member

status-im-auto commented Sep 27, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 14966ba #1 2024-09-27 17:52:36 ~6 min macos/aarch64 🍎dmg
✔️ 14966ba #1 2024-09-27 17:53:04 ~6 min tests/nim 📄log
✔️ 14966ba #1 2024-09-27 17:58:31 ~12 min tests/ui 📄log
✔️ 14966ba #1 2024-09-27 18:01:30 ~15 min linux-nix/x86_64 📦tgz
✔️ 14966ba #1 2024-09-27 18:02:44 ~16 min macos/x86_64 🍎dmg
✔️ 14966ba #1 2024-09-27 18:03:45 ~17 min linux/x86_64 📦tgz

@status-im-auto
Copy link
Member

Copy link
Member

@micieslak micieslak left a comment

Choose a reason for hiding this comment

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

Looks ok in general, but I have doubts if this kind of masking real problems won't slow us down regarding fixing roots of the problem... 🤔

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.

3 participants