Skip to content

Conversation

ltitanb
Copy link
Collaborator

@ltitanb ltitanb commented Sep 12, 2025

we're currently cloning registrations many times depending on the number of relays and chunk size. We now instead:

  • avoid parsing registration data from the beacon node
  • only serialize once, and use zero copy Bytes to avoid deep cloning

I kept the Vec parsing since we need to chunk registrations

@ltitanb ltitanb requested a review from jclapis September 15, 2025 14:02
@ltitanb ltitanb merged commit 2844dcc into main Sep 15, 2025
3 checks passed
@ltitanb ltitanb deleted the lt/better-regs branch September 15, 2025 14:11
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