Closed Bug 1216556 Opened 6 years ago Closed 6 years ago

Improve camera lazy loading

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-master fixed)

RESOLVED FIXED
FxOS-S10 (30Oct)
Tracking Status
b2g-master --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

Details

Attachments

(1 file)

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.
Blocks: 1210849
Assignee: nobody → aosmond
Status: NEW → ASSIGNED
Attachment #8676275 - Flags: review?(jdarcangelo)
Attachment #8676275 - Flags: review?(jdarcangelo) → review?(dmarcos)
Attachment #8676275 - Flags: review?(dmarcos) → review+
Keywords: checkin-needed
Master: https://github.com/mozilla-b2g/gaia/commit/7fff750452a4c9eb2c8f5984ceea3281b0f184d0
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S10 (30Oct)
Depends on: 1222196
You need to log in before you can comment on or make changes to this bug.