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 improv #906

Closed
wants to merge 3 commits into from
Closed

Perf improv #906

wants to merge 3 commits into from

Conversation

RCasatta
Copy link
Contributor

These are some performance improvements I found by looking at the code after the announcement of the release 0.10.0

I am not sure if they are on the hot path since I didn't find benches or observation data for live electrs instances that would be extremely interesting to see.

This should save 2 reallocation for row since serialize will allocate without
capacity (should be 4) and every time will double, so it will need other 2
re-allocation for a total of 3. While here is 1.
@romanz
Copy link
Owner

romanz commented Jul 22, 2023

Many thanks!
I will push the two last commits in #909 and will rebase 152233b over it.

@romanz romanz self-assigned this Jul 22, 2023
@romanz romanz closed this Jul 28, 2023
@RCasatta RCasatta deleted the perf_improv branch July 28, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants