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

Reuse encoder in DB #122

Merged
merged 2 commits into from
Aug 7, 2023
Merged

Reuse encoder in DB #122

merged 2 commits into from
Aug 7, 2023

Conversation

chris124567
Copy link
Member

Prevent an unnecessary 1 KB allocation from being repeated in all the put calls.

chain/db.go Outdated Show resolved Hide resolved
@lukechampine lukechampine merged commit ad76cac into master Aug 7, 2023
6 checks passed
@lukechampine lukechampine deleted the reuse-encoder branch August 7, 2023 16:22
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