Menu

#32 Performance regression on Android 11 / LineageOS 18.1

open
zc2
Performance (1)
9
2021-05-01
2021-04-30
Bradley
No

After updating to a new LineageOS version a month or so ago, I've noticed Ghost Commander repeatedly hanging for 10+ seconds after an action.
Initially opening it, it takes some time to show the files in the directory I was last in. About 33 seconds in my testing just now. This loads both directories of the two, switching between them and scrolling is fine, I see the thumbnails okay.
If I select(mark) a file it seems to take a very long time again, and while I'm waiting, scrolling seems to not work either. Once the lag spike ends, I can select and deselect files at normal speed.
Going to the parent directory or any other directory causes another spike, and if I try to change to the other pane during this lag, I get an android popup that Ghost Commander is not responding. Usually this appears right as it was about to stop lagging, so I hit "Wait".
Opening an image can take 7 seconds or so and sometimes creates the same prompt about Ghost Commander not responding. Once backing out of the picture viewer, there is another hang. I can't scroll through the files again for a while.
This may or may not be related to the number of files in the directories, but I noticed these issues immediately after upgrading, so it shouldn't be exclusively the file count. Simple File Manager is working pretty much how I expect still. Pictures open/close fast, no major hangs. There's a hang of 3-5 seconds when going into a directory with a lot of files, but that is much less than Ghost Commander, I can keep scrolling and stuff during this time, and I never get a popup that the program is not responding.
This seems like it should be a high priority issue since it makes using the app very painful.

Discussion

  • zc2

    zc2 - 2021-04-30

    what version did you upgrade to?

     
  • Bradley

    Bradley - 2021-04-30

    The one in the title. So, I went from LineageOS 17.1 which is Android 10 to LineageOS 18.1 which is Android 11. I've updated every week or two to different nightlies, but it was the very first release of 18.1 for my device (OnePlus 5 / Cheeseburger) where I noticed the issue.

     
    • zc2

      zc2 - 2021-04-30

      Sorry, did not notice the title.
      What version of GC are you running?
      How many files you have in your folders? Is the performance degrading related to the number of files? Is there any performance improvement when the sorting is set to "by names" ?

       
  • Bradley

    Bradley - 2021-04-30

    Latest from F-Droid, 1.60b1.
    2800 files in one, 780 in another of the common dirs.
    I don't think it's related to # of files exactly since it was fine on the older version. I was suspecting a change in how Android deals with storage, maybe.
    Sorting by name is still laggy, might be slightly better. Hard to tell. Still took 15 seconds to go up into one of the big dirs. I don't really remember having any delays before. If I had just crossed a file # threshold, I would've expected peformance degradation to be more gradual.

     
  • zc2

    zc2 - 2021-04-30

    May I ask you to test out the latest beta from this site? I believe I did addresses the android11 file access degrading after that release you have. If you decide to do so, you will need to uninstall the fdroid version and any plugins if you have any.

     
  • Bradley

    Bradley - 2021-04-30

    It does seem fixed on the beta version! There are still some slowdowns on the bigger directory, like it didn't look like "sort by date" was working right at first, I guess it was still sorting. And it can take a few seconds to load contents, but it no longed locks up the UI. I can switch panes while a directory is loading, my scrolling isn't being halted anymore, etc. Seems good.
    Feel free to close this now then, or when the release is done maybe. On that note, any ETA on the next F-Droid release?

     
    • zc2

      zc2 - 2021-05-01

      Sorry, I do not manage the F-Droid releases. You may try to contact them.

       

Log in to post a comment.