Closed Bug 1170581 Opened 9 years ago Closed 9 years ago

Updating tab counter causes performance issues

Categories

(Firefox for iOS :: Home screen, defect)

Other
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios + ---

People

(Reporter: sleroux, Assigned: sleroux)

References

Details

(Keywords: perf)

Attachments

(3 files)

Looks like the layoutIfNeeded call inside the updateTabCount is causing performance issues because it's relaying out all the subviews in order to calculate the cloned button's frame. A solution would be to statically set the button frame and not rely on the view to layout to determine the view's frame.
Does this need to be sec-sensitive?
Flags: needinfo?(sleroux)
Flags: needinfo?(sleroux)
No it doesn't. Sorry not sure how that flag got turned on :/
Group: core-security
tracking-fxios: --- → ?
Keywords: perf
Assignee: nobody → sleroux
Added some changes to improve the startup time of the app. Removed the layoutIfNeeded call when updating the tab count as it's not needed. Also removed the showToolbars call that was happening when the user selects a tab as the toolbars will always be shown if we are selecting a new tab and not calling it avoids a layout pass.
Attachment #8614165 - Flags: review?(bnicholson)
Attachment #8614165 - Flags: review?(bnicholson) → review+
Merged.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: