-
Notifications
You must be signed in to change notification settings - Fork 95
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
Remove dependency on unused ARC algorithm from hashicorp/golang-lru #366
Comments
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
It would be also nice if go-ipfs-blockstore could avoid importing |
@Stebalien could you take a look? 🙏 |
Would it be possible to replace github.com/hashicorp/golang-lru with @ktock 's ARC-free fork? We (the containerd project) are already using his fork: https://github.com/containerd/nerdctl/blob/9efa1234350bab9a5150fbb5b7f3655aa24f82e1/go.mod#L172-L173 |
I'm happy to accept a patch with the comment requested in the original issue, but I'd rather not switch to a random fork (especially when upstream is active as we're likely going to switch to their new generic version sooner rather than later). Patents aren't like copyright. Has a lawyer told you you can't import that library? Patents are all about using patented technologies. |
Given we haven't heard back more on this, it's not clear the priority of this right now. |
I'm not feeling that I'm the right person to submit this patch, as I don't have good understanding of the code and the patent. I'd appreciate if we can get the patch from the maintainers or at least somebody who has better understanding than me.
No, importing the library is probably okay as long as it is not used, but it is slightly hard to attest that the patented code is not actually used, when it is imported. |
It seems the problem was resolved in the upstream library – ARC code was moved to separate package: So the remaining work here is to:
PR: #367 |
This comment was marked as resolved.
This comment was marked as resolved.
arc_cache.go
+ remove mentions of ARC Closes #366
+ remove mentions of ARC Closes #366
+ remove mentions of ARC Closes #366
arc_cache.go
seems modified to avoid hitting the patent (ipfs/go-ipfs-blockstore#20) of ARC algorithm, but I was confused as the code comments still state that it uses the ARC algorithm.https://github.com/ipfs/go-ipfs-blockstore/blob/03acccfc7eae2b977b3ec49663b6e23b6a1bdf9e/arc_cache.go#L16-L29
Could you add code comments to clarify the patent status of this file?
The text was updated successfully, but these errors were encountered: