Skip to content

Commit

Permalink
chore(storage/transfermanager): reduce zero array size used for check…
Browse files Browse the repository at this point in the history
…sums (#10617)
  • Loading branch information
BrennaEpp authored Aug 1, 2024
1 parent 6b51942 commit b90b361
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions storage/transfermanager/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ import (

// maxChecksumZeroArraySize is the maximum amount of memory to allocate for
// updating the checksum. A larger size will occupy more memory but will require
// fewer updates when computing the crc32c of a full object.
// TODO: test the performance of smaller values for this.
const maxChecksumZeroArraySize = 4 * 1024 * 1024
// fewer updates when computing the crc32c of a full object (but is not necessarily
// more performant). 100kib is around the smallest size with the highest performance.
const maxChecksumZeroArraySize = 100 * 1024

// Downloader manages a set of parallelized downloads.
type Downloader struct {
Expand Down

0 comments on commit b90b361

Please sign in to comment.