Mobile/StartupOptimization: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 27: Line 27:
** Launch Mozilla during device startup and keep in background (no visible window).  Launching Firefox will only open a new window.
** Launch Mozilla during device startup and keep in background (no visible window).  Launching Firefox will only open a new window.
* Identify & disable unnecessary work during startup (for mobile)
* Identify & disable unnecessary work during startup (for mobile)
** DougT can you please add any related bugs here?
** Bug 421561 [https://bugzilla.mozilla.org/show_bug.cgi?id=421561]
=== Bugs ===
=== Bugs ===

Revision as of 20:07, 7 March 2008

Issues

Trunk Firefox takes ~15s to show the main window on the N800. With a simpler chrome it reduces to about 8s. The Maemo browser on the same hardware takes ~3s, and Safari (iPod Touch) takes less than a second.

Goals

Initial goal: Reduce startup time as perceived by the user to less than 3s.

Task list

Here are some potential optimizations:

  • Improve fastload performance
    • Filed bug 412796 [1]
  • Optimize mobile chrome
  • Function re-ordering
    • Streamline memory access by placing all code & data needed for start-up in contiguous sections at the start of the binary.
  • Optimize memory allocation
    • Significant time during startup is in memory allocations. Need link to ongoing work.
  • Optimize startup hotspots
  • Preload Mozilla libraries
    • Preload all libraries during startup; launching Firefox only loads the XUL application.
  • Preload Mozilla application
    • Launch Mozilla during device startup and keep in background (no visible window). Launching Firefox will only open a new window.
  • Identify & disable unnecessary work during startup (for mobile)

Bugs