mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1142455 - Tweak MediaCache parameters. r=roc
This commit is contained in:
parent
d81616333e
commit
51b2ca2870
@ -25,7 +25,11 @@
|
||||
// For HTTP seeking, if number of bytes needing to be
|
||||
// seeked forward is less than this value then a read is
|
||||
// done rather than a byte range request.
|
||||
static const int64_t SEEK_VS_READ_THRESHOLD = 32*1024;
|
||||
//
|
||||
// If we assume a 100Mbit connection, and assume reissuing an HTTP seek causes
|
||||
// a delay of 200ms, then in that 200ms we could have simply read ahead 2MB. So
|
||||
// setting SEEK_VS_READ_THRESHOLD to 1MB sounds reasonable.
|
||||
static const int64_t SEEK_VS_READ_THRESHOLD = 1 * 1024 * 1024;
|
||||
|
||||
static const uint32_t HTTP_REQUESTED_RANGE_NOT_SATISFIABLE_CODE = 416;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user