Increased threshold for async reads from 2K to 20K to reduce Mac startup time. Ongoing work from bug #10334. r=saari.
git-svn-id: svn://10.0.0.236/trunk@49386 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d0550e7198
commit
e204bde5c0
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user