Increased threshold for async reads from 2K to 20K to reduce Mac startup time. Ongoing work from bug #10334. r=saari.

This commit is contained in:
sdagley%netscape.com 1999-09-30 01:45:02 +00:00
Родитель 2ee263efc7
Коммит 81ce6c451b
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -250,10 +250,10 @@ PRInt32 ReadWriteProc(PRFileDesc *fd, void *buf, PRUint32 bytes, IOOperation op)
if (op == READ_ASYNC)
{
/*
** Skanky optimization so that reads < 2K are actually done synchronously
** Skanky optimization so that reads < 20K are actually done synchronously
** to optimize performance on small reads (e.g. registry reads on startup)
*/
if (bytes > 2048L)
if ( bytes > 20480L )
{
me->io_pending = PR_TRUE; /* Only mark thread io pending in async call */
(void) PBReadAsync(&pbAsync);