Skip to content

Commit

Permalink
feat(migrate-from-gcs): tune buffer sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
alextes committed Oct 16, 2023
1 parent fc5b2de commit f8c9788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/migrate-from-gcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async fn main() -> anyhow::Result<()> {
let payload_stream = gcs.get(&object_meta.location).await?.into_stream();
let reader = StreamReader::new(payload_stream);

const DECODED_BUFFER_SIZE: usize = 128;
const DECODED_BUFFER_SIZE: usize = 256;
let (mut decoded_tx, mut decoded_rx) = channel(DECODED_BUFFER_SIZE);

spawn_blocking(move || {
Expand Down Expand Up @@ -229,7 +229,7 @@ async fn main() -> anyhow::Result<()> {
}
});

const SLOT_BUNDLE_BUFFER_SIZE: usize = 32;
const SLOT_BUNDLE_BUFFER_SIZE: usize = 8;
let (mut slot_bundle_tx, slot_bundle_rx) = channel(SLOT_BUNDLE_BUFFER_SIZE);

spawn(async move {
Expand Down

0 comments on commit f8c9788

Please sign in to comment.