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

Default max records in block 256 #320

Merged
merged 4 commits into from Jul 18, 2023
Merged

Default max records in block 256 #320

merged 4 commits into from Jul 18, 2023

Conversation

atimin
Copy link
Member

@atimin atimin commented Jul 18, 2023

Closes #

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • CHANGELOG.md have been updated (for bug fixes / features / docs)

What kind of change does this PR introduce?

Optimization

What is the current behavior?

The current maximal number of records in a block is 1024. This is not optimal because encoding and decoding of Protobuf is an expensive operation.

What is the new behavior?

256 works 20% faster for writing, 200% for reading.

Does this PR introduce a breaking change?

No

Other information:

@atimin atimin merged commit 034c553 into main Jul 18, 2023
19 checks passed
@atimin atimin deleted the default_mac_records branch July 18, 2023 20:48
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.

None yet

1 participant