-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Many settings request RPCs on each received message #10493
Milestone
Comments
Yeah they 100% should be. Good catch |
@igor-sirotin can you please provide steps to reproduce this? |
Nevermind, managed to reproduce |
@0x-r4bbit Just receive a message from anyone. I had such output on each message the app was receiving |
0x-r4bbit
added a commit
that referenced
this issue
May 3, 2023
There are a bunch of notification related settings that cause RPC calls when read from the UI in QML/Qt. This is bad because whenever the view tries to read a notification setting it causes an RPC call and then rerenders the view. This happens pretty much every time a new signal arrives in the client. To account for that we now fetch all notification settings once and mark the service as initialized so it know when to simply return cached values. The cache is updated when the notification settings change. Fixes #10493
@igor-sirotin this is fixed in the linked PR. PTAL |
0x-r4bbit
added a commit
that referenced
this issue
May 4, 2023
There are a bunch of notification related settings that cause RPC calls when read from the UI in QML/Qt. This is bad because whenever the view tries to read a notification setting it causes an RPC call and then rerenders the view. This happens pretty much every time a new signal arrives in the client. To account for that we now fetch all notification settings once and mark the service as initialized so it know when to simply return cached values. The cache is updated when the notification settings change. Fixes #10493
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Description
I get this log on each received message.
I suppose that all of these notifications settings should be cached?
The text was updated successfully, but these errors were encountered: