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

Smaller in-database representations #2436

Merged
merged 4 commits into from
Jul 2, 2024
Merged

Smaller in-database representations #2436

merged 4 commits into from
Jul 2, 2024

Conversation

arnetheduck
Copy link
Member

These representations use ~15-20% less data compared to the status quo, mainly by removing redundant zeroes in the integer encodings - a significant effect of this change is that the various rocksdb caches see better efficiency since more items fit in the same amount of space.

  • use RLP encoding for VertexID and UInt256 wherever it appears
  • pack VertexRef/PayloadRef more tightly

These representations use ~15-20% less data compared to the status quo,
mainly by removing redundant zeroes in the integer encodings - a
significant effect of this change is that the various rocksdb caches see
better efficiency since more items fit in the same amount of space.

* use RLP encoding for `VertexID` and `UInt256` wherever it appears
* pack `VertexRef`/`PayloadRef` more tightly
@arnetheduck arnetheduck merged commit c364426 into master Jul 2, 2024
26 checks passed
@arnetheduck arnetheduck deleted the smaller-payload branch July 2, 2024 18:25
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