Skip to content
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

Research potential speed improvements for file and directory listing #235

Open
IgorShadurin opened this issue May 11, 2023 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@IgorShadurin
Copy link
Collaborator

I've noticed that loading the list of files and directories could potentially be significantly faster (applicable to Fairdrive). Currently, when reading a path, the metadata for each file is also loaded, which can slow down the response.

One potential solution is to separate the process into two stages:

  • Initially return only the list of filenames and directories, without any metadata.
  • After displaying this list, load the metadata for each file in the background.

This approach could help speed up the initial display of files and directories, improving the user experience. However, it's important that this change doesn't affect the interfaces of existing methods, to maintain compatibility with existing code.

Additionally, it's important to consider the specifics of Blossom. Since Blossom operates on a "one method - one response" principle, implementing a new method using a reactive programming library like rxjs could affect Blossom's functionality.

Acceptance Criteria:

  • Investigate the current method of loading file and directory lists, identifying the bottlenecks and areas for potential improvement.
  • Develop a proposal for a new method that separates the loading of filenames/directories and metadata, potentially improving response times.
  • Ensure the proposed method does not change the interfaces of existing methods, to maintain compatibility.
  • Consider the impact of the proposed method on Blossom, and ensure it doesn't negatively affect its functionality.
@IgorShadurin IgorShadurin added the enhancement New feature or request label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant