Closed Bug 1216556 Opened 6 years ago Closed 6 years ago
Improve camera lazy loading
The camera application uses lazy loading but it can be improved to reduce startup time: 1) Storage takes a long time to get a response from the parent process. This should be moved out of lazy loading and into the startup process to ensure it is begun ASAP. 2) The confirm controller and view are only needed if an activity is triggered. We should lazy load the confirm controller based on that, because for the general case (no activity) we don't need it all. 3) MediaFrame and its dependencies take a long time to load during startup (estimated to be an extra 100-200ms). We only need these for the confirm view and the preview gallery, neither of which the user needs loaded to use the app to take pictures and record videos. As such, ensure that it is loaded on demand (note: verify extra latency on opening preview gallery is acceptable). 4) Other dependencies such DCF, image resizing, etc can also be loaded on demand to get into the app faster assuming the delays introduced on first load elsewhere are acceptable.
Assignee: nobody → aosmond
Status: NEW → ASSIGNED
Attachment #8676275 - Flags: review?(jdarcangelo)
Attachment #8676275 - Flags: review?(jdarcangelo) → review?(dmarcos)
Attachment #8676275 - Flags: review?(dmarcos) → review+
You need to log in before you can comment on or make changes to this bug.