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

feat(server): Update helio, optimize and clean up rdb/snapshot #625

Merged
merged 2 commits into from
Dec 31, 2022

Conversation

dranikpg
Copy link
Contributor

No description provided.

Comment on lines +98 to +99
// Push byte slice to channel.
void PushBytesToChannel(DbIndex db_index, io::Bytes bytes);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

My idea:

If I'll be implementing an async writer with the IoBuf swapping technique, then I can use it for single shard snapshots as well instead of a channel with small portions

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is it important? Take into account that iobuf is not optimized for being a queue. It may realloc heavily for variable size workloads. I think it's too soon to start optimizing the code towards a winning approach.

Comment on lines -147 to -148
// TODO : drop default_buffer from this class, we dont realy need it.
std::unique_ptr<io::StringFile> default_buffer_; // filled by default_serializer_
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Either way removing this is intended

Signed-off-by: Vladislav Oleshko <[email protected]>
@dranikpg dranikpg requested a review from romange December 31, 2022 09:23
@dranikpg dranikpg merged commit 443ab95 into dragonflydb:main Dec 31, 2022
@dranikpg dranikpg deleted the update-helio branch January 5, 2023 18:21
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