SetCoalesceWindowMS

Document management, Performance, Concurrency

Description

Sets how long the first caller to miss a chunk waits before issuing its source request, which gives concurrent misses on adjacent chunks time to queue and be fetched together

A value of zero disables that collection delay; sharing of an in-flight fetch for the same chunk and merging of requests already queued behind another source read stay active

Syntax

Delphi

Procedure TByteRangeStream.SetCoalesceWindowMS(Value: Cardinal);

Parameters

ValueThe window in milliseconds; the constructor default is 2

Remarks

The window is applied only to the first uncached chunk of each ReadAt call; positional Read calls never wait for it

The current value is available through CoalesceWindowMS and in the GetCacheStats snapshot

See also

TByteRangeStreamReadAt, TByteRangeStreamAvailability, LoadFromRangeSource