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)

All
Android
defect
Not set
normal

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)

Attached patch patch for Android (obsolete) — 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.
The size measurements were of the final APKs
What's the difference in size of the final installed libs, after a first-run?
Attachment #510279 - Flags: review?(blassey.bugs)
(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
for anyone following long at home, mfinkle is going to get numbers for other available optimization flags.
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.
s/tired/tried
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+
tracking-fennec: --- → 2.0b5+
Assignee: nobody → mark.finkle
Keywords: perf
OS: Linux → Android
Hardware: x86_64 → All
Whiteboard: [tp]
Attached patch patch 2Splinter Review
Adds JS configure and removes a redundant flag.
Attachment #510279 - Attachment is obsolete: true
Attachment #510933 - Flags: review?(blassey.bugs)
Attachment #510933 - Flags: review?(cdleary)
Attachment #510933 - Flags: review?(blassey.bugs) → review+
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+
Stuart suggested looking into more fine-grained use of opt flags so we don't grow the lib size too much.
(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
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
The JS changes in this patch don't do anything to how JS is compiled, because JS overwrites with MODULE_OPTIMIZE_FLAGS
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.

Attachment

General

Created:
Updated:
Size: