Closed Bug 1394580 Opened 8 years ago Closed 8 years ago

GeckoView startup optimizations

Categories

(GeckoView :: General, enhancement)

All
Android
enhancement
Not set
normal

Tracking

(firefox57 fixed)

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: jchen, Assigned: jchen)

References

Details

Attachments

(6 files)

Small optimizations for GeckoView startup
Attachment #8903353 - Flags: review?(esawin) → review+
Attachment #8903357 - Flags: review?(esawin) → review+
Comment on attachment 8903354 [details] Bug 1394580 - 2. Add GeckoViewStartup to consolidate startup tasks; https://reviewboard.mozilla.org/r/175152/#review180488 ::: mobile/android/components/geckoview/GeckoViewStartup.js:71 (Diff revision 1) > + (ppmm || mm).forEach(msg => target.addMessageListener(msg, listener)); > + } > + }, > + > + addLazyEventListener: function(aOptions) { > + let {name, target, events, options} = aOptions; You can just do: addLazyEventListener({ name, target, events, options}) { }
Attachment #8903354 - Flags: review?(snorp) → review+
Comment on attachment 8903356 [details] Bug 1394580 - 4. Disable MDNS service for GeckoView; https://reviewboard.mozilla.org/r/175156/#review180490 I think we want to support casting and presentation API, so I think we need to keep this. We're not using the JS implementation, right? How much time does it need on startup?
Attachment #8903355 - Flags: review?(droeh) → review+
(In reply to James Willcox (:snorp) (jwillcox@mozilla.com) from comment #9) > Comment on attachment 8903356 [details] > Bug 1394580 - 4. Disable MDNS service for GeckoView; > > https://reviewboard.mozilla.org/r/175156/#review180490 > > I think we want to support casting and presentation API, so I think we need > to keep this. We're not using the JS implementation, right? How much time > does it need on startup? I guess I see those more as browser features. Seems like the fallback MDNS code is not loaded. Still it does take around 30ms on startup on a Nexus 4.
(In reply to Jim Chen [:jchen] [:darchons] from comment #11) > (In reply to James Willcox (:snorp) (jwillcox@mozilla.com) from comment #9) > > Comment on attachment 8903356 [details] > > Bug 1394580 - 4. Disable MDNS service for GeckoView; > > > > https://reviewboard.mozilla.org/r/175156/#review180490 > > > > I think we want to support casting and presentation API, so I think we need > > to keep this. We're not using the JS implementation, right? How much time > > does it need on startup? > > I guess I see those more as browser features. Seems like the fallback MDNS > code is not loaded. Still it does take around 30ms on startup on a Nexus 4. It's a bit of both, right? A browser probably can't cast a web video without some help from the engine. I guess maybe we can disable it for now and come at it again when we decide we want that.
Attachment #8903356 - Flags: review?(snorp) → review+
Comment on attachment 8904683 [details] Bug 1394580 - 6. Use WindowEventDispatcher for prompt if available; https://reviewboard.mozilla.org/r/176484/#review181460
Attachment #8904683 - Flags: review+
Pushed by nchen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b84fc40ed8c2 1. Only load AsyncPrefs for Fennec; r=esawin https://hg.mozilla.org/integration/autoland/rev/6c4c8b4e38cf 2. Add GeckoViewStartup to consolidate startup tasks; r=snorp https://hg.mozilla.org/integration/autoland/rev/995d9ef9af5f 3. Lazy-load AndroidLog.jsm; r=droeh https://hg.mozilla.org/integration/autoland/rev/a9b1cbbeea9a 4. Disable MDNS service for GeckoView; r=snorp https://hg.mozilla.org/integration/autoland/rev/1cc1955d6af3 5. Lazy-load Task.jsm in Messaging.jsm; r=esawin https://hg.mozilla.org/integration/autoland/rev/f069f3c69597 6. Use WindowEventDispatcher for prompt if available; r=jchen
Pushed by nchen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/71322aab413b 1. Only load AsyncPrefs for Fennec; r=esawin https://hg.mozilla.org/integration/autoland/rev/0fd2ec57de05 2. Add GeckoViewStartup to consolidate startup tasks; r=snorp https://hg.mozilla.org/integration/autoland/rev/aeb4ccaf74b3 3. Lazy-load AndroidLog.jsm; r=droeh https://hg.mozilla.org/integration/autoland/rev/dd645a7a4f81 4. Disable MDNS service for GeckoView; r=snorp https://hg.mozilla.org/integration/autoland/rev/b3b76444d58d 5. Lazy-load Task.jsm in Messaging.jsm; r=esawin https://hg.mozilla.org/integration/autoland/rev/be2d41805031 6. Use WindowEventDispatcher for prompt if available; r=jchen
Flags: needinfo?(nchen)
Pushed by nchen@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/ef59984ad7b0 7. Follow-up to unpack fields in function signature; r=me
Product: Firefox for Android → GeckoView
Target Milestone: Firefox 57 → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: