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

chore: replace Compact with bincode on ETL usage of SealedHeader #11442

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Oct 2, 2024

Compact should ideally only be used on types that get stored to disk.

SealedHeader is only required for ETL so its codec is irrelevant. h/t @shekhirin for recently making it bincode compatible.

@joshieDo joshieDo added C-enhancement New feature or request A-staged-sync Related to staged sync (pipelines and stages) labels Oct 2, 2024
@joshieDo joshieDo marked this pull request as draft October 2, 2024 22:15
@joshieDo joshieDo marked this pull request as ready for review October 2, 2024 22:25
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes sense, the bincode compact here is more or less zero cost and this also doesn't affect existing setups

pending @shekhirin

Copy link
Collaborator

@shekhirin shekhirin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This is not breaking, because ETL is scoped to only one node run, and we don't re-use previously generated ETL files?

@mattsse mattsse added this pull request to the merge queue Oct 3, 2024
Merged via the queue into main with commit 73d5ce7 Oct 3, 2024
36 checks passed
@mattsse mattsse deleted the joshie/shc branch October 3, 2024 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-staged-sync Related to staged sync (pipelines and stages) C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants