This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Save file names to file and load after restart #272
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Change
Hello, this is a quick fix for #271.
Here, I added a simple implementation of saving autocomplete data to a local file.
This way, we can load it after restart and show the ui immediately after a project is open.
The file list is deflated, because it contains a lot of similar strings and using the minimal compression level, we can get huge decrease in size.
Alternate Designs
For now, this is the simplest implementation.
Benefits
This change will bring better support for projects with a lot of files, e.g. >50k, removing quite a long wait time.
Old cache files are removed after a month, if there were no updates.
Possible Drawbacks
A list of files will be saved to .atom folder, this may be unexpected. However old files will be removed in a month, if the corresponding projects are not opened frequently.
Applicable Issues
#271