Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

use LRU cache to store loaded namespaces #689

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

MarinPostma
Copy link
Collaborator

@MarinPostma MarinPostma commented Sep 19, 2023

This PR replaces the namespace store dumb hashmap with an LRU cache to bound the maximum number of namespaces loaded into memory while unbounding the number of namespaces allocated on a sqld instance.
Additionally, this enables fully concurrent access to namespaces by removing the global lock on the namespace store.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant