Replies: 3 comments 1 reply
-
What do you mean there's no async keyword? It's right there on the line you've highlighted? And then the code within the function uses
Maybe it could be re-written to use the async variant, but this code is related to project templates, which isn't related to the sidebar slowness in the issue report. |
Beta Was this translation helpful? Give feedback.
-
This doesn't have a return value, I believe making it async would be beneficial: code/src/FolderManager/FileView.vala Line 250 in f74056d What do you think? |
Beta Was this translation helpful? Give feedback.
-
Also need to check if the time taken increases in proportion the number of items or to its square or log; this could give a clue as to the cause. E.g. is the list being resorted after every addition? Is there a list that is being iterated over for every addition? In the issue, the 2000 files I was loading were empty and being loaded from SSD. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was looking at this issue, trying to find a solution: #1332.
I came to the conclusion that maybe it was synchronous programming somewhere.I'm a beginner to Vala, so this question may be stupid. This function over here is supposed to be async, but there's noasync
keyword.https://github.com/elementary/code/blob/f74056da4400e52444b0665ce1cf5b0be8ef86c8/src/Services/FileHandler.vala#LL56C1-L56C73This over here uses the sync variant...but should it?code/src/Services/TemplateManager.vala
Line 60 in f74056d
Beta Was this translation helpful? Give feedback.
All reactions