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

Flat db stem last #76

Merged
merged 5 commits into from
Oct 29, 2024
Merged

Flat db stem last #76

merged 5 commits into from
Oct 29, 2024

Conversation

matkt
Copy link
Contributor

@matkt matkt commented Oct 17, 2024

PR description

This PR cleans up and renames certain methods to improve clarity. This PR is also necessary for the implementation of the flat DB based on stems.

Fixed Issue(s)

matkt added 4 commits October 14, 2024 16:23
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
Copy link

  • I thought about the changelog.

Copy link

@garyschulte garyschulte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be helpful to use a semantic type for stem keys instead of Bytes. like StemKey or something similar, so we can still keep it hasher agnostic, but have a bit more code readability than just Bytes.

Not blocking feedback, suggestion for future.

import java.util.List;
import java.util.Map;
import java.util.Optional;

import com.google.common.cache.Cache;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

caffeine would likely be a more performant option than guava

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did the modification

Signed-off-by: Karim Taam <karim.t2am@gmail.com>
@matkt matkt merged commit 70f48da into hyperledger:main Oct 29, 2024
5 checks passed
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.

2 participants