Skip to content

Improve LRU performance #481

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

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

Conversation

quzary
Copy link

@quzary quzary commented Jul 10, 2025

  1. class Pair replaced with struct Pair
  2. ValueRef used instead of Value in LinkedListNode. The performance gain is up to 5% (on small numbers no gain or a minor loss), memory gain is up to 23%.

1. ``` class Pair``` replaced with ```struct Pair```
2. `ValueRef` used instead of `Value` in the `LinkedListNode`.
The performance gain is up to 5% (on small numbers no gain or a minor loss), memory gain is up to 23%.
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.

1 participant