kDefaultChunkSize top-level constant

int const kDefaultChunkSize

Default chunk size: 16 MiB.

Rationale (see docs/research/web.md ยง7.1): 32 GiB / 16 MiB = 2048 chunk files, and peak memory in the worker is one chunk, independent of file size.

Implementation

const int kDefaultChunkSize = 16 * 1024 * 1024;