Mobile/StartupOptimization: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 8: Line 8:


== Task list ==
== Task list ==
Here are some potential optimizations:
* Improve fastload performance
** Filed bug 412796 [https://bugzilla.mozilla.org/show_bug.cgi?id=412796]
* Optimize mobile chrome
** UI design
** [[Mobile/XULOptimization|XUL Optimizations]]
* 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
** Bug 406810 [https://bugzilla.mozilla.org/show_bug.cgi?id=406810]
* 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.


=== Bugs ===
=== Bugs ===
=== Features ===

Revision as of 16:31, 4 February 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.

Bugs