Closed
Bug 708394
Opened 13 years ago
Closed 13 years ago
Avoid LayoutInflater in constructors
Categories
(Firefox for Android Graveyard :: General, defect, P1)
Tracking
(firefox11 fixed, fennec11+)
RESOLVED
FIXED
People
(Reporter: sriram, Assigned: sriram)
Details
Attachments
(1 file)
|
19.10 KB,
patch
|
mfinkle
:
review+
|
Details | Diff | Splinter Review |
Using LayoutInflater will increase the time to load the UI. The same functionality can be used with <include/> and onFinishInflate(). It's better to remove the LayoutInflater used at various places.
Updated•13 years ago
|
Assignee: nobody → sriram
Priority: -- → P1
Comment 1•13 years ago
|
||
This will help startup time
| Assignee | ||
Comment 2•13 years ago
|
||
This patches uses <include/> and removes the LayoutInflation from most places.
While using profiler, I saw some performance win. Generally there is around 50-150ms faster UI on Nexus S and 5-20ms faster UI on Nexus.
The "onFinishInflate()" is called twice in pre-Honeycomb (or pre-ICS) phones -- reported here: http://www.androidadb.com/source/payforwarding-read-only/source/Android/GreenDroid/GreenDroid/src/greendroid/widget/ActionBar.java.html
I have a guard for the same.
Attachment #579872 -
Flags: review?(mark.finkle)
Updated•13 years ago
|
Attachment #579872 -
Flags: review?(mark.finkle) → review+
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
tracking-fennec: --- → 11+
Updated•13 years ago
|
status-firefox11:
--- → fixed
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•