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

BN client Committees response optimizations #361

Merged
merged 4 commits into from
May 12, 2023

Conversation

jshufro
Copy link
Contributor

@jshufro jshufro commented May 8, 2023

  • Change []beacon.Committee to an interface to reduce copying on the hot path
  • Allow buffered decoding in the BN std-http-client
  • Reuse []string buffers for bn committee responses
  • Reuse json.Decoder objects (which have internal buffers) across calls to the beacon node's committees endpoint

shared/services/beacon/client.go Outdated Show resolved Hide resolved
shared/services/beacon/client.go Outdated Show resolved Hide resolved
…t path

Allow buffered decoding in the BN std-http-client
@jshufro jshufro force-pushed the rolling-trees-prs branch 2 times, most recently from 383fe7a to 2f18b81 Compare May 10, 2023 18:28
@jclapis
Copy link
Member

jclapis commented May 12, 2023

Alrighty, in it goes!

@jclapis jclapis merged commit 380b146 into rocket-pool:rolling-trees May 12, 2023
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