remove 16K limit on ODA handler call, r=darin, sr=sspitzer,a=sspitzer should speed up local folder parsing substantialy 172786

This commit is contained in:
bienvenu%netscape.com 2003-05-05 22:18:11 +00:00
Родитель 862d5b8ded
Коммит 394469c6d1
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -394,10 +394,10 @@ nsInputStreamPump::OnStateTransfer()
avail = mStreamLength - mStreamOffset;
if (avail) {
// XXX need to make max ODA size configurable
if (avail > 16384)
avail = 16384;
// we used to limit avail to 16K - we were afraid some ODA handlers
// might assume they wouldn't get more than 16K at once
// we're removing that limit since it speeds up local file access.
// Now there's an implicit 64K limit of 4 16K segments
// NOTE: ok, so the story is as follows. OnDataAvailable impls
// are by contract supposed to consume exactly |avail| bytes.
// however, many do not... mailnews... stream converters...