-
Notifications
You must be signed in to change notification settings - Fork 37
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
[Chore] Upgrade dashmap to v6 #1820
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Aug 11, 2024
tillrohrmann
approved these changes
Aug 13, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. +1 for merging.
- Design for lazy serialization and deserialization - In-memory loglet now skips serialization entirely - LogEntry api enables future key-filtering (upcoming) - Fixed benchmarks - Decouple local-loglet's storage layout from Bifrost - Pave for in-memory record cache - Simplified loglet's API, everything now goes through the append_batch API - Support for passing payloads through an Arc since our payloads are pretty large in inefficient to pass through mpsc channels by value. Using Arc internally in bifrost allows near-zero cost clones on retries, caching of records, and zero-cost delivery to readers with no memory copies or deserialization. - Removes requirement for metadata store's value to be `Clone` since StorageEncode is now object-safe As a result of all recent changes, benchmarks show nearly _almost_ double the append throughput, although impact on production workloads will likely be small at this stage
- Upgrade derive_more - Use derive_more as much as possible (it has a comprehensive list of powerful derive macros) - Some `strum::Display` macros still exist whenever we need parity to serde's kebab-case style. - Replaces `strum::EnumIs` with `derive_more::IsVariant` - Replaces `strum::FromRepr` with `derive_more::TryFrom` - Clean ups: strum_macros -> strum (using `derive` feature on `strum` instead of a separate crate. Easier to grep, and one version to maintain) - Remove unused deps in bifrost to speed up builds - Removed a couple of Debug fields in bifrost where we were printing a value under mutex
dashmap v6.0.1 brings nice performance improvements anywhere in 5-40% range
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[Chore] Upgrade dashmap to v6
dashmap v6.0.1 brings nice performance improvements anywhere in 5-40% range
Stack created with Sapling. Best reviewed with ReviewStack.