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

perf: use fuzon cache with CodeMatcher #108

Merged
merged 4 commits into from
Oct 23, 2024
Merged

perf: use fuzon cache with CodeMatcher #108

merged 4 commits into from
Oct 23, 2024

Conversation

cmdoret
Copy link
Member

@cmdoret cmdoret commented Oct 23, 2024

When using code search locally, loading the terminologies over the network can take up to 30s.

This PR implements caching so that this only happens the first time a terminology is used.
On subsequent loads, they are loaded from cache, which takes about 1s.

Caching logic is implemented in fuzon, and each terminology has one cache entry whose key is determined by its URL, last modified datetime and/or ETag checksum if available.

@cmdoret cmdoret self-assigned this Oct 23, 2024
@cmdoret cmdoret marked this pull request as ready for review October 23, 2024 13:46
@cmdoret cmdoret merged commit 49be74c into main Oct 23, 2024
2 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