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 caching #167

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Add caching #167

merged 2 commits into from
Dec 9, 2024

Conversation

kasnerz
Copy link
Collaborator

@kasnerz kasnerz commented Dec 5, 2024

Currently, the annotation and output index is completely re-generated based on the files on the filesystem at every load of the browse page.

That keeps the indexes up to date, but it leads to significant slowdowns with a larger number of files.

Here, we implement a system of caching annotations and model outputs.

👉️ We store the latest modification time of each file.
👉️ We make change to the index only for (a) files that were modified and (b) files that were deleted.

@kasnerz kasnerz requested a review from oplatek December 5, 2024 16:15
@kasnerz kasnerz merged commit 794e564 into main Dec 9, 2024
3 checks passed
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