Skip to content

Improve LRU performance in C##481

Open
quzary wants to merge 5 commits intohanabi1224:mainfrom
quzary:lru_2_cs_memory_improvement
Open

Improve LRU performance in C##481
quzary wants to merge 5 commits intohanabi1224:mainfrom
quzary:lru_2_cs_memory_improvement

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%.

quzary added 3 commits July 10, 2025 20:42
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%.
Fixed indentation
@quzary quzary changed the title Improve LRU performance Improve LRU performance in C# Jul 28, 2025
quzary added 2 commits July 28, 2025 15:55
Avoid using ValueRef with older framework versions.
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