Closed Bug 506104 Opened 15 years ago Closed 15 years ago

add a memoized getter for PluralForm.jsm inside DownloadUtils.jsm

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3.6a1

People

(Reporter: dietrich, Assigned: Natch)

Details

(Keywords: perf, Whiteboard: [ts])

Attachments

(1 file, 2 obsolete files)

      No description provided.
Whiteboard: [ts]
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → highmind63
Status: NEW → ASSIGNED
Attachment #390921 - Flags: review?(sdwilsh)
Oh, and I'm not sure how useful this will be, after looking a bit more through the calling startup code, DownloadMonitoPanel.init, which is called in delayedStartup, calls updateStatus which calls DownloadUtils.getTimeLeft which calls convertTimeUnits which calls converTimeUnitsUnits which uses PluralForm. Maybe it's better for the code compilation though, dunno...
delayedStartup() is called asynchronously from BrowserStartup(), which means that this change will allow the event queue to be processed before importing the module. currently the importation of this module blocks the event queue unnecessarily.
Not with bug 506099 :)

It's better like this anyhow, as my logic was faulty, it isn't called unless there's a pending download.
Attached patch patch (obsolete) — Splinter Review
It's unnecessary to go through the scoping, this works just as well as long as it's in the global scope (which is the case here). See bug 506104.
Attachment #390921 - Attachment is obsolete: true
Attachment #391469 - Flags: review?(sdwilsh)
Attachment #390921 - Flags: review?(sdwilsh)
Attachment #391469 - Attachment is patch: true
Attachment #391469 - Attachment mime type: application/octet-stream → text/plain
Attached patch err, for realSplinter Review
I need automatic qrefresh...
Attachment #391469 - Attachment is obsolete: true
Attachment #391469 - Flags: review?(sdwilsh)
Attachment #391470 - Flags: review?(sdwilsh)
Keywords: checkin-needed
Attachment #391470 - Flags: review?(sdwilsh)
http://hg.mozilla.org/mozilla-central/rev/d743242a080a
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.6a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: