Closed
Bug 822914
Opened 11 years ago
Closed 11 years ago
Improve gBrowser.selectedTab getter efficiency
Categories
(Firefox :: Tabbed Browser, defect)
Firefox
Tabbed Browser
Tracking
()
RESOLVED
FIXED
Firefox 20
People
(Reporter: tabutils+bugzilla, Assigned: tabutils+bugzilla)
References
Details
(Keywords: perf)
Attachments
(1 file, 2 obsolete files)
1.86 KB,
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
And replace (aTab == this.selectedTab) with aTab.selected. .selectedTab getter seems more expensive than .mCurrentTab.
Attachment #693717 -
Flags: feedback?(dao)
Comment 2•11 years ago
|
||
Comment on attachment 693717 [details] [diff] [review] patch The tab.selected changes are fine, but we should make selectedTab fast rather than using mCurrentTab.
Attachment #693717 -
Flags: feedback?(dao)
Updated•11 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
So maybe selectedTab getter could return mCurrentTab directly, and use tabContainer.selectedItem instead when necessary?
Comment 4•11 years ago
|
||
This sounds reasonable.
I'm not sure whether there is some risk. I'm testing it in my profile.
Attachment #693717 -
Attachment is obsolete: true
It just works.
Attachment #694316 -
Attachment is obsolete: true
Attachment #696460 -
Flags: review?(dao)
Updated•11 years ago
|
Attachment #696460 -
Flags: review?(dao) → review+
Updated•11 years ago
|
Assignee: nobody → ithinc
Keywords: checkin-needed,
perf
OS: Windows 7 → All
Hardware: x86_64 → All
Summary: Replace .selectedTab with .mCurrentTab in tabbrowser.xml when possible → Improve gBrowser.selectedTab getter efficiency
Comment 7•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0b34087f3e7d
Keywords: checkin-needed
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0b34087f3e7d
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
You need to log in
before you can comment on or make changes to this bug.
Description
•