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

fix(perf): Optimize token prices propagation #17066

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

alexjba
Copy link
Contributor

@alexjba alexjba commented Jan 14, 2025

What does the PR do

Closes #16994

Check if something has actually change in prices before reseting the wallet.

This would be the first line of defense for token prices updates. It seems to be enough for the send modal performance improvements.

The full solution to this issue (and maybe to a lot of wallet related UI perf issues) would be to send granular QML updates only for values that have actually changed. But this implies extensive nim+qml refactoring.

Affected areas

SendModal
SwapModal

Copy link
Contributor

@Khushboo-dev-cpp Khushboo-dev-cpp left a comment

Choose a reason for hiding this comment

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

Looks like a good instant improvement in behaviour!

@Khushboo-dev-cpp Khushboo-dev-cpp self-requested a review January 14, 2025 09:38
@status-im-auto
Copy link
Member

status-im-auto commented Jan 14, 2025

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 87c69a7 #1 2025-01-14 09:42:12 ~7 min macos/aarch64 🍎dmg
✔️ 87c69a7 #1 2025-01-14 09:43:46 ~8 min tests/nim 📄log
✔️ 87c69a7 #1 2025-01-14 09:46:51 ~11 min tests/ui 📄log
✔️ 87c69a7 #1 2025-01-14 09:52:58 ~18 min linux-nix/x86_64 📦tgz
✔️ 87c69a7 #1 2025-01-14 09:53:42 ~18 min macos/x86_64 🍎dmg
✔️ 87c69a7 #1 2025-01-14 09:56:32 ~21 min linux/x86_64 📦tgz
✔️ 87c69a7 #1 2025-01-14 10:02:19 ~27 min windows/x86_64 💿exe

@alexjba alexjba marked this pull request as ready for review January 14, 2025 13:24
@alexjba alexjba requested review from a team as code owners January 14, 2025 13:24
@alexjba alexjba requested review from Cuteivist, alaibe, dlipicar and saledjenic and removed request for a team January 14, 2025 13:24
Copy link
Contributor

@saledjenic saledjenic left a comment

Choose a reason for hiding this comment

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

The full solution to this issue (and maybe to a lot of wallet related UI perf issues) would be to send granular QML updates only for values that have actually changed. But this implies extensive nim+qml refactoring.

Yes, that's it and yes that requires refactor.

Copy link
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

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

🥳

@alexjba alexjba merged commit e5c4d0a into master Jan 16, 2025
9 checks passed
@alexjba alexjba deleted the fix/optimize-token-prices-propagation branch January 16, 2025 10:11
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.

[Perf] Send modal - close to being unusable on Windows
5 participants