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

Improvements to LruCache #8

Merged
merged 1 commit into from
Jul 24, 2023
Merged

Improvements to LruCache #8

merged 1 commit into from
Jul 24, 2023

Conversation

ultd
Copy link
Contributor

@ultd ultd commented Jul 24, 2023

  • Added methods contains, remove, mru and lru
  • Added len field
  • Use of std.mem.swap instead of allocator.destroy when reach max_items to save free and alloc syscalls
  • Added basic comments/doc

@ultd ultd merged commit 2c6b3a5 into main Jul 24, 2023
@ultd ultd deleted the ultd/lru-improvement branch July 24, 2023 04:50
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