-
Notifications
You must be signed in to change notification settings - Fork 137
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
Switching between profiles takes very long #1962
Comments
This is extremely slow in your case. I also noticed a delay after recent updates, but it's only 1-2s. It will re-populate the info in all the tabs on profile change. I guess one of those is a bit slow with too much data. (many logs or archives?) |
The BorgBase repo has I just noticed that the remote backup did not prune properly for some time now, I edited the numbers above accordingly. The video was recorded with 86 archives in the BorgBase repo. Switching from Sophos to BorgBase is now considerably faster (about 6 seconds, which I find acceptable). The other way around (BorgBase to Sophos) takes about the same time. What seems strange to me, however: The visible GUI changes instantly, but you cannot interact with it. For example, I have the "Archives" tab open and click on another profile. I can instantly see (a maybe cached/outdated??) archive list of the profile I switched to, but cannot interact with Vorta at all during the (now 6 second) load time. As a DAU (aka "stupidest user one can think of", as we say in Germany 😉 ), I'd assume once something is displayed, I should be able to interact with it. Personally, I don’t mind these 6 seconds, but it might be a symptom of a bigger problem/opportunity for improvement, so feel free to close this issue or leave it open. I don't know anything about Vorta code, so I leave this decision up to you 😉 The specs of my PC as per KDE's system settings:
|
Actually, the time is not always the same: It still goes up to 20-30 seconds sometimes. I tested it multiple times now and got varying results, all under the same background load (8 open tabs in Firefox, Dolphin, Kate and KDE system settings open). Output of
|
Will do some debugging later to see if there are some easy wins to be made. |
Found the following:
Wifi and Archive list both use the same widget. Maybe there is a better way to insert items into it. Still looking into that and will push a PR after. |
Couldn't get the Wifi list faster with batch inserting or updating existing items only. So the only way is to use a worker thread for the list. We already do this for folder stats ( |
I'm close to fixing this by moving the Wifi- and mount processing to separate threads. After this, the GUI updates aren't as blocking: #1964 (comment) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue was closed because it has been stalled for 7 days with no activity. |
@m3nu is this still WIP or really not planned? For me personally, the issue persists. Not as bad as in the video, but I guess it scales with the amount of archives in the repos. |
I spent a day coding the solution, but didn't manage to fix the tests. If you want to test and look at the tests, we could merge it pretty quickly. |
Description
I have two profiles. The first one backs up really critical stuff to my BorgBase remote repo, the second one backs up my entire home directory to a NAS in my home network. Switching between those profiles takes a long time - about 25 seconds. During that time, the program window is unresponsive, Kubuntu greys out the window and says that Vorta "does not react" and offers me to kill the process.
Unfortunately, I can't pinpoint the exact version of Vorta where this issue occurred the first time. I believe it was introduced when the profiles were moved to the left side of the window, but I might be wrong.
Here is a screencast to show how long it takes (Repo location blurred out, of course): https://youtu.be/xVuywsOY4Go?si=yousLqS0vgW8sPF7
Reproduction
OS
Kubuntu 23.10
Version of Vorta
0.9.1
What did you install Vorta with?
Flatpak
Version of Borg
1.2.4
Logs
The text was updated successfully, but these errors were encountered: