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

Add Tree to store all tree files in memory #1059

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Add Tree to store all tree files in memory #1059

merged 1 commit into from
Aug 26, 2024

Conversation

yykamei
Copy link
Owner

@yykamei yykamei commented Aug 26, 2024

The current implementation has a performance problem because it always get all files when the passed query changes. This significantly increases I/O. I want to avoid the call of I/O by storing all files in memory. This development decision might affect the memory usage, but I want to first try it.

This patch just adds Tree for the purpose of storing all possible files, which is not yet used by other modules.

The current implementation has a performance problem because it always
get all files when the passed `query` changes. This significantly
increases I/O. I want to avoid the call of I/O by storing all files in
memory. This development decision might affect the memory usage,
but I want to first try it.

This patch just adds `Tree` for the purpose of storing all possible
files, which is not yet used by other modules.
@yykamei yykamei merged commit 874de44 into main Aug 26, 2024
24 checks passed
@yykamei yykamei deleted the tree branch August 26, 2024 14:05
yykamei added a commit that referenced this pull request Aug 27, 2024
In the previous pull request below, `Tree` has been introduced in this
repository to store the all files under the `starting_point`.

#1059

This patch uses `Tree` in `Screen` and `Candidates` to reduce I/O of
getting files.
yykamei added a commit that referenced this pull request Aug 27, 2024
In the previous pull request below, `Tree` has been introduced in this
repository to store the all files under the `starting_point`.

#1059

This patch uses `Tree` in `Screen` and `Candidates` to reduce I/O of
getting files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant