зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1142455 - Tweak MediaCache parameters; r=roc
This commit is contained in:
Родитель
f0988d185f
Коммит
f7a8ee4dbc
|
@ -25,7 +25,11 @@
|
||||||
// For HTTP seeking, if number of bytes needing to be
|
// For HTTP seeking, if number of bytes needing to be
|
||||||
// seeked forward is less than this value then a read is
|
// seeked forward is less than this value then a read is
|
||||||
// done rather than a byte range request.
|
// 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;
|
static const uint32_t HTTP_REQUESTED_RANGE_NOT_SATISFIABLE_CODE = 416;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче