Skip to content

Speed-up initial root directory load time #16299

@alperozturk96

Description

@alperozturk96

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

If the server instance is slow and the root folder is very large, the initial load time can be high.

I also noticed that the listDirectory function for the same directory gets called multiple times during the first app launch and twice while navigating.

OCFileListFragment.onActivityCreated
FDA.updateListOfFilesFragment
FDA.updateFileList
FDA.updateFileList

When I make listDirectory run only once, there is a small performance improvement, but the overall experience does not change significantly. Also, some caller functions come from important logic such as SYNC_FOLDER and FDA.onResume. These calls may be unnecessary at first launch, but they are required when the app moves to the background and foreground or after remote operations, as the list needs to be updated.

Suggestion

We should load the directory chunk by chunk instead of loading it fully, similar to how we handle the local file list adapter.

@tobiasKaminsky

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions