Closed Bug 1446332 Opened 6 years ago Closed 6 years ago

Remove const nsI* from tabbrowser.js

Categories

(Firefox :: Tabbed Browser, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 61
Tracking Status
firefox61 --- fixed

People

(Reporter: dao, Assigned: dao)

Details

Attachments

(1 file)

      No description provided.
Comment on attachment 8959504 [details]
Bug 1446332 - Remove const nsI* from tabbrowser.js.

https://reviewboard.mozilla.org/r/228312/#review234126

This will have negative perf impact, but I guess it'll be very small and the readability improvement is worth it...
Attachment #8959504 - Flags: review?(gijskruitbosch+bugs) → review+
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d6e5148a7f7d
Remove const nsI* from tabbrowser.js. r=Gijs
(In reply to :Gijs from comment #2)
> Comment on attachment 8959504 [details]
> Bug 1446332 - Remove const nsI* from tabbrowser.js.
> 
> https://reviewboard.mozilla.org/r/228312/#review234126
> 
> This will have negative perf impact, but I guess it'll be very small

s/very small/unmeasurably tiny/, if it exists at all. Some of the consts aren't even used multiple times.
(In reply to Dão Gottwald [::dao] from comment #4)
> (In reply to :Gijs from comment #2)
> > This will have negative perf impact, but I guess it'll be very small
> 
> s/very small/unmeasurably tiny/, if it exists at all.

I've measured it, in bug 1425466, so it definitely exists. Tiny, but some of the code where there *are* multiple usages runs frequently (e.g. on docshell state changes). I don't think we should keep the previous version of this code for that impact's sake, but I think we should be aware of it in general. I'd like to come back to e.g. bug 1425616 and bug 1384727 and friends, but I'm busy with other things.
https://hg.mozilla.org/mozilla-central/rev/d6e5148a7f7d
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: