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

Reduce number of lookups in LRU map for updates and invalidations #32951

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

vekterli
Copy link
Member

@havardpe please review. The fun never ends 👹

  • Add find_no_ref method to lrucache_map which returns an iterator to the mapped element iff it exists, and which does not update the LRU ordering.
  • Collapse 3 LRU map lookups into 1 for cache updates and invalidations for existing mappings.
  • Rewrite lrucache_map tests to use GTest

@vekterli vekterli requested a review from havardpe November 26, 2024 16:48
 * Add `find_no_ref` method to `lrucache_map` which returns an iterator
   to the mapped element iff it exists, and which does _not_ update
   the LRU ordering.
 * Collapse 3 LRU map lookups into 1 for cache updates and invalidations
   for existing mappings.
 * Rewrite `lrucache_map` tests to use GTest
@vekterli vekterli force-pushed the vekterli/reduce-cache-lru-lookups branch from b7a338e to 239bc8d Compare November 27, 2024 13:59
@vekterli vekterli merged commit 3a76654 into master Nov 27, 2024
3 checks passed
@vekterli vekterli deleted the vekterli/reduce-cache-lru-lookups branch November 27, 2024 14:10
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.

2 participants