Skip to content

Commit

Permalink
WIP: ass_cache: experiment with non-blocking optimizations for the LR…
Browse files Browse the repository at this point in the history
…U list

- Instead of adding/promoting items in the LRU list within ass_cache_get, add them to a simpler singly-linked lock-free list of items used this frame
- In ass_cache_cut, add/promote the contents of the list from the previous frame
- Take locks as little as possible (by using double-checked locking patterns, making more things atomic, etc)
- Shard locks by bucket (this should really change to be by thread, via a mechanism suggested by MrSmile)
  • Loading branch information
rcombs committed Aug 1, 2022
1 parent ee39d80 commit bb31b71
Showing 1 changed file with 223 additions and 109 deletions.

0 comments on commit bb31b71

Please sign in to comment.