-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Very slow to open due to reorder of massive tree #649
Comments
testing just now, it took 4 minutes and 22 seconds to open photos on my computer (so close to 4:20, dang) |
Here's a backtrace when I stop to inspect the current operations:
|
For context, after commenting out this line: Line 37 in 073f5a8
|
This is where the massive slowdown appears to be occurring: Line 682 in bc7feca
|
I tried calling |
What Happened?
On opening photos, it kicks off a
Branch.reorder_all
(https://github.com/elementary/photos/blob/master/src/sidebar/Branch.vala#L337), which takes on the order of minutes on my computer to complete. This makes Photos effectively unusable unless I go to make coffee between launching it and starting to use it.At first, I thought photos was stuck, since it sat consuming 100% CPU on one core for so long and elementary OS launched the "Photos isn't responding" window, but after letting it sit, it eventually finishes.
Steps to Reproduce
Expected Behavior
It should open in a reasonable amount of time
OS Version
6.x (Odin)
Software Version
Compiled from git
Log Output
Hardware Info
The text was updated successfully, but these errors were encountered: