Struct MaximumHedgeBufferOption (3.14.0-rc)

The largest read, in bytes, that is eligible for hedging.

Racing requests each buffer their own copy of the data, so the memory used by a raced read grows with the size of that read. A read larger than this value is served without hedging, reading directly into the application's buffer, which bounds that growth. Note this is the size the application asks for in a single read (e.g. stream.read(buf, n)), not the size of the object or of a requested range.

This bound applies to every raced read, both the stream open and any stalled read that is raced later, so a stream can hold up to MaxReadHedgesOption + 1 buffers of this size at once.

The default is 64 MiB (64 * 1024 * 1024).

Type Aliases

Type

Alias Of: std::size_t