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

avoid some trivial memory allocations #2587

Merged
merged 1 commit into from
Sep 2, 2024
Merged

avoid some trivial memory allocations #2587

merged 1 commit into from
Sep 2, 2024

Conversation

arnetheduck
Copy link
Member

  • pre-allocate blobify data and remove redundant error handling (cannot fail on correct data)
  • use threadvar for temporary storage when decoding rdb, avoiding closure env
  • speed up database walkers by avoiding many temporaries

~5% perf improvement on block import, 100x on database iteration (useful for building analysis tooling)

* pre-allocate `blobify` data and remove redundant error handling
(cannot fail on correct data)
* use threadvar for temporary storage when decoding rdb, avoiding
closure env
* speed up database walkers by avoiding many temporaries

~5% perf improvement on block import, 100x on database iteration (useful
for building analysis tooling)
@arnetheduck arnetheduck merged commit ef1bab0 into master Sep 2, 2024
26 checks passed
@arnetheduck arnetheduck deleted the mem-cleanups branch September 2, 2024 14:03
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.

1 participant