Skip to content

Commit

Permalink
Improve cache eviction policy for LoadedPrograms (solana-labs#34391)
Browse files Browse the repository at this point in the history
* Use 2's random selection to evict program cache

* implement decaying of usage counter

* replace RwLock with AtomicU64

* address review comments

* remove -> swap_remove
  • Loading branch information
pgarg66 authored Dec 18, 2023
1 parent eb948b1 commit 6f0133b
Show file tree
Hide file tree
Showing 3 changed files with 282 additions and 33 deletions.
Loading

0 comments on commit 6f0133b

Please sign in to comment.