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

deps: bump hashicorp/golang-lru to v2 and move from ARC to 2Q cache #175

Merged
merged 3 commits into from
May 22, 2024

Conversation

cristaloleg
Copy link
Contributor

@cristaloleg cristaloleg commented May 21, 2024

Overview

This PR updates the major version of github.com/hashicorp/golang-lru from v1 to v2. The biggest improvement is support for generics. So, we can experience a bit better performance due to fewer allocations than v1 (where every value was wrapped in interface{}, which causes allocation in most cases).

I'm not sure if I should prove my words with benchmarks 'cause the golang-lru authors didn't post any benchmarks.

Also here: moving from ARC cache to 2Q (two queue) to avoid potential issues with ARC patent.

@renaynay
Copy link
Member

Thank you for bump and explanation @cristaloleg :) no benchmarks necessary if they didn't provide them either.

@Wondertan
Copy link
Member

As discussed in sync, we should migrate to 2Q(or smlr) to avoid potential issues with ARC being patented by IBM

@cristaloleg cristaloleg changed the title deps: bump hashicorp/golang-lru to v2 deps: bump hashicorp/golang-lru to v2 and move from ARC to 2Q cache May 22, 2024
@cristaloleg cristaloleg merged commit b715333 into main May 22, 2024
4 checks passed
@cristaloleg cristaloleg deleted the bump-hashicorp/golang-lru branch May 22, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants