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

update comments to correctly reflect counter space usage #189

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

neena
Copy link
Contributor

@neena neena commented Aug 27, 2020

When using ristretto in our application, we noticed that the memory used per counter was much higher than the documentation suggested. This PR updates the comments in the config struct to accurately represent the space per counter (and matches our observations).

Sources:
https://github.com/neena/ristretto/blob/29b4dd7a077785696ba5422081b3c301d4c1e5f1/sketch.go#L43-L62
https://github.com/neena/ristretto/blob/8f368f2f2ab3a54cbe62fb9772cd75ce55e07802/z/bbloom.go#L51-L75


This change is Reviewable

@CLAassistant
Copy link

CLAassistant commented Aug 27, 2020

CLA assistant check
All committers have signed the CLA.

@neena
Copy link
Contributor Author

neena commented Sep 15, 2020

Hi - any feedback on this? I'd love to move it out of my PR inbox (or make changes as needed)! Let me know 😄

@neena
Copy link
Contributor Author

neena commented Oct 6, 2020

@manishrjain @karlmcguire Would it be possible to get a review on this? This caused some confusion for us when rolling out a ristretto cache in production, and it would be nice to avoid this confusion for future users!

@karlmcguire karlmcguire merged commit e0a933c into dgraph-io:master Apr 14, 2021
@neena neena deleted the neena/update-config-doc branch April 15, 2021 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants