Closed
Bug 632037
Opened 14 years ago
Closed 14 years ago
Optimize more for speed and less for size
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(fennec2.0b5+)
RESOLVED
WONTFIX
Tracking | Status | |
---|---|---|
fennec | 2.0b5+ | --- |
People
(Reporter: mfinkle, Assigned: mfinkle)
References
Details
(Keywords: perf, Whiteboard: [tp])
Attachments
(1 file, 1 obsolete file)
2.01 KB,
patch
|
blassey
:
review+
cdleary
:
review+
|
Details | Diff | Splinter Review |
We currently optimize for space (Os). Doug suggested trying to optimize more for speed (O2) and test the results. We score consistently 15% faster on local Tp results. The down size is a space increase: 12330427 bytes -> 13211583 bytes (a 860KB increase)
Personally, I'd rather have the speed.
I think we should consider the same changes for Maemo too.
Assignee | ||
Comment 1•14 years ago
|
||
The size measurements were of the final APKs
Comment 2•14 years ago
|
||
What's the difference in size of the final installed libs, after a first-run?
Assignee | ||
Updated•14 years ago
|
Attachment #510279 -
Flags: review?(blassey.bugs)
Assignee | ||
Comment 3•14 years ago
|
||
(In reply to comment #2)
> What's the difference in size of the final installed libs, after a first-run?
I did not check> Here is the APK http://people.mozilla.com/~mfinkle/fennec/fennec-4.0b5pre.en-US.optimizedforspeed.apk
Comment 4•14 years ago
|
||
for anyone following long at home, mfinkle is going to get numbers for other available optimization flags.
Assignee | ||
Comment 5•14 years ago
|
||
I tired -O3 and found no measurable improvement over -O2. I did find the APK size jumped to 15186695 bytes, a 2789KB increase over the current -Os flag.
Assignee | ||
Comment 6•14 years ago
|
||
s/tired/tried
Comment 7•14 years ago
|
||
Comment on attachment 510279 [details] [diff] [review]
patch for Android
Please make the same change in js's configure
Attachment #510279 -
Flags: review?(blassey.bugs) → review+
Updated•14 years ago
|
tracking-fennec: --- → 2.0b5+
Updated•14 years ago
|
Assignee: nobody → mark.finkle
Updated•14 years ago
|
Assignee | ||
Comment 8•14 years ago
|
||
Adds JS configure and removes a redundant flag.
Attachment #510279 -
Attachment is obsolete: true
Attachment #510933 -
Flags: review?(blassey.bugs)
Updated•14 years ago
|
Attachment #510933 -
Flags: review?(cdleary)
Updated•14 years ago
|
Attachment #510933 -
Flags: review?(blassey.bugs) → review+
Comment 9•14 years ago
|
||
Comment on attachment 510933 [details] [diff] [review]
patch 2
r+, but did we try with just-JS at -O3? Curious as to whether that would change anything in the engine -- we may have some important inlines that aren't always-inline-annotated that we'd lose out on with -O2.
Attachment #510933 -
Flags: review?(cdleary) → review+
Assignee | ||
Comment 10•14 years ago
|
||
Stuart suggested looking into more fine-grained use of opt flags so we don't grow the lib size too much.
Comment 11•14 years ago
|
||
(In reply to comment #10)
> Stuart suggested looking into more fine-grained use of opt flags so we don't
> grow the lib size too much.
which is what PGO does, ie bug 632954
Assignee | ||
Comment 12•14 years ago
|
||
pushed to test affects. we can backout and wait for PGO if needed:
http://hg.mozilla.org/mozilla-central/rev/c49735ad9fa0
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 13•14 years ago
|
||
The JS changes in this patch don't do anything to how JS is compiled, because JS overwrites with MODULE_OPTIMIZE_FLAGS
Assignee | ||
Comment 14•14 years ago
|
||
backed out. we have no post-landing perf data to verify this improved anything:
http://hg.mozilla.org/mozilla-central/rev/63817ae85b30
not worth the size increase
Resolution: FIXED → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•