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)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 3.6a1
People
(Reporter: dietrich, Assigned: Natch)
Details
(Keywords: perf, Whiteboard: [ts])
Attachments
(1 file, 2 obsolete files)
933 bytes,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Updated•15 years ago
|
Whiteboard: [ts]
Assignee | ||
Comment 1•15 years ago
|
||
Assignee | ||
Comment 2•15 years ago
|
||
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...
Reporter | ||
Comment 3•15 years ago
|
||
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.
Assignee | ||
Comment 4•15 years ago
|
||
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.
Assignee | ||
Comment 5•15 years ago
|
||
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)
Assignee | ||
Updated•15 years ago
|
Attachment #391469 -
Attachment is patch: true
Attachment #391469 -
Attachment mime type: application/octet-stream → text/plain
Assignee | ||
Comment 6•15 years ago
|
||
I need automatic qrefresh...
Attachment #391469 -
Attachment is obsolete: true
Attachment #391469 -
Flags: review?(sdwilsh)
Assignee | ||
Updated•15 years ago
|
Attachment #391470 -
Flags: review?(sdwilsh)
Updated•15 years ago
|
Attachment #391470 -
Flags: review+
Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Updated•15 years ago
|
Attachment #391470 -
Flags: review?(sdwilsh)
Comment 7•15 years ago
|
||
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.
Description
•