Closed Bug 305843 Opened 19 years ago Closed 19 years ago

Update timer fires every 5 seconds

Categories

(Toolkit :: Application Update, defect)

defect
Not set
major

Tracking

()

VERIFIED FIXED

People

(Reporter: mikepinkerton, Assigned: bugs)

Details

(Keywords: perf, verified1.8)

Attachments

(2 files)

If you put a dump in the background notification timer for the update service,
you see that it fires every five seconds.

  var timerInterval = getPref("getIntPref", PREF_APP_UPDATE_TIMER, 5000);

and this pref isn't set to anything else by any pref files that i could find
with lxr (it's not set in firefox.js). 

This seems pretty bad to have this constantly running with such a short interval
for no good reason.
cc'ing ben so he'll read the bug and requesting blocking status.
Flags: blocking1.8b4?
Keywords: perf
This pref controls a timer which checks if the update interval has expired yet.
We need to have this kind of model because long timers seem to be buggy and
seriously disturb some of the tinderboxes. 

With that said, we could raise this value to something higher than 5000 now the
background update system has been tested and has been shown to work fairly
effectively.

Maybe set it to 600000? (600 seconds, 10 minutes)
Flags: blocking1.8b4? → blocking1.8b4+
Attachment #193951 - Flags: review?(brettw)
Attachment #193951 - Flags: approval1.8b4?
Comment on attachment 193951 [details] [diff] [review]
patch to do just that

r=brettw@gmail.com
Attachment #193951 - Flags: review?(brettw) → review+
Attachment #193951 - Flags: approval1.8b4? → approval1.8b4+
landed branch and trunk. 
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
FYI, I made this change to Thunderbird as well. 
Status: RESOLVED → VERIFIED
Keywords: fixed1.8verified1.8
while looking into an other issue, I noticed the comment does not match the code.  here's the fix.  (note seamonkey, http://lxr.mozilla.org/seamonkey/source/suite/browser/browser-prefs.js#247, is already correct)
trivial supplimental fix checked in.

Checking in browser/app/profile/firefox.js;
/cvsroot/mozilla/browser/app/profile/firefox.js,v  <--  firefox.js
new revision: 1.171; previous revision: 1.170
done
Checking in mail/app/profile/all-thunderbird.js;
/cvsroot/mozilla/mail/app/profile/all-thunderbird.js,v  <--  all-thunderbird.js
new revision: 1.89; previous revision: 1.88
done
Checking in calendar/sunbird/app/profile/sunbird.js;
/cvsroot/mozilla/calendar/sunbird/app/profile/sunbird.js,v  <--  sunbird.js
new revision: 1.40; previous revision: 1.39
done
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: