From 3ce507a2b49eb98d729e2ee6be8b8f3c73feb0ce Mon Sep 17 00:00:00 2001 From: "kmcclusk%netscape.com" Date: Fri, 23 Mar 2001 14:16:05 +0000 Subject: [PATCH] Changed default for mNotificationInterval from 1sec to 1/4sec to improve incremental page load performance for slow connections/servers bug 72138; r=karnaze@netscape.com sr=attinasi@netscape.com git-svn-id: svn://10.0.0.236/trunk@90250 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/document/src/nsHTMLContentSink.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mozilla/content/html/document/src/nsHTMLContentSink.cpp b/mozilla/content/html/document/src/nsHTMLContentSink.cpp index 4886da76825..d404d18c257 100644 --- a/mozilla/content/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/content/html/document/src/nsHTMLContentSink.cpp @@ -2321,7 +2321,14 @@ HTMLContentSink::Init(nsIDocument* aDoc, mBackoffCount = -1; // never prefs->GetIntPref("content.notify.backoffcount", &mBackoffCount); - mNotificationInterval = 1000000; + // The mNotificationInterval has a dramatic effect on how long it + // takes to initially display content for slow connections. + // The current value of 1/4 of second provides good + // incremental display of content without causing an increase + // in page load time. If this value is set below 1/10 of second + // it starts to impact page load performance. + // see bugzilla bug 72138 for more info. + mNotificationInterval = 250000; prefs->GetIntPref("content.notify.interval", &mNotificationInterval); mMaxTextRun = 8192;