defaultChunkSize constant
int
const defaultChunkSize
Default chunk size — 64 KiB.
Picked to balance three things on web (the most constrained backend): IndexedDB record overhead per write, JS heap pressure per chunk in flight, and the typical encryption chunk size used by streaming AEAD constructions (which lets a chunked-then- encrypted pipeline align without re-buffering). Override via the constructor for workloads with different trade-offs.
Implementation
static const int defaultChunkSize = 64 * 1024;