Skip to content

perf: serve mapping lookups from the in-memory cache - #47

Merged
Ryder-C merged 1 commit into
devfrom
cache-mapping-lookups
Aug 11, 2026
Merged

perf: serve mapping lookups from the in-memory cache#47
Ryder-C merged 1 commit into
devfrom
cache-mapping-lookups

Conversation

@Ryder-C

@Ryder-C Ryder-C commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Every resolve went through load_mappings, which stats the mapping file and reads the etag file so two disk reads per search request.

The refresh task is the sole writer and updates the cache itself, so lookups now clone the cached index directly.

Every resolve went through load_mappings, which stats the mapping file
and reads the etag file before consulting the cache -- two disk reads
per search request. The refresh task is the sole writer and updates the
cache itself, so lookups now clone the cached index directly and only
fall back to disk when the cache was never hydrated. External edits to
data/mappings.json are now picked up on refresh/restart rather than
immediately.
@Ryder-C
Ryder-C merged commit 04c416e into dev Aug 11, 2026
2 checks passed
@Ryder-C
Ryder-C deleted the cache-mapping-lookups branch August 11, 2026 21:27
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