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

perf: misc changes #5701

Merged
merged 1 commit into from
Dec 5, 2023
Merged

perf: misc changes #5701

merged 1 commit into from
Dec 5, 2023

Conversation

DaniPopes
Copy link
Member

No description provided.

@rkrasiuk rkrasiuk added C-perf A change motivated by improving speed, memory usage or disk footprint A-db Related to the database A-trie Related to Merkle Patricia Trie implementation labels Dec 5, 2023
Copy link
Member

@rkrasiuk rkrasiuk left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines +189 to +190
// We don't know the length of the element until we compact it.
let mut tmp = Vec::with_capacity(64);
Copy link
Member

Choose a reason for hiding this comment

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

would appreciate a comment on why 64

Copy link
Member Author

Choose a reason for hiding this comment

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

Don't know either, I didn't write this code

Copy link
Member

Choose a reason for hiding this comment

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

missed that it was already there

@rkrasiuk rkrasiuk requested a review from mattsse December 5, 2023 18:24
@DaniPopes DaniPopes added this pull request to the merge queue Dec 5, 2023
Merged via the queue into main with commit 926766d Dec 5, 2023
27 checks passed
@DaniPopes DaniPopes deleted the dani/random-perf branch December 5, 2023 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-db Related to the database A-trie Related to Merkle Patricia Trie implementation C-perf A change motivated by improving speed, memory usage or disk footprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants