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 lru cache #841

Merged
merged 15 commits into from
Dec 20, 2024
Merged

Add lru cache #841

merged 15 commits into from
Dec 20, 2024

Conversation

jean-roland
Copy link
Contributor

@jean-roland jean-roland commented Dec 19, 2024

1.1 introduced a placeholder rx cache feature that will be filled with this PR. Cache is still off by default because it's aimed at high throughput scenarios.

Cache itself is a double linked list (ideally suited for lru operations) and has an optional binary tree hybridation to improve search time on bigger caches. Although given the memory requirements and embedded constraints it's off by default. associated to a sorted array for lookup.

Changed some functions to accept keyexpr pointers instead of value.

Copy link

PR missing one of the required labels: {'new feature', 'enhancement', 'dependencies', 'bug', 'internal', 'documentation', 'breaking-change'}

@jean-roland jean-roland requested a review from sashacmc December 19, 2024 16:22
@jean-roland jean-roland added the enhancement Things could work better label Dec 19, 2024
src/session/queryable.c Outdated Show resolved Hide resolved
src/collections/lru_cache.c Outdated Show resolved Hide resolved
src/collections/string.c Outdated Show resolved Hide resolved
@yellowhatter yellowhatter merged commit 8dc7d13 into eclipse-zenoh:main Dec 20, 2024
67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Things could work better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants