Closed
Bug 834620
Opened 12 years ago
Closed 12 years ago
Begin initializing camera hardware while initializing dom / css / js
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect)
Firefox OS Graveyard
Gaia::Camera
Tracking
(blocking-b2g:tef+, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)
VERIFIED
FIXED
blocking-b2g | tef+ |
People
(Reporter: jlal, Assigned: daleharvey)
References
Details
(Keywords: perf, Whiteboard: [fast:300ms-900ms], [FFOS_perf], [qa-])
Attachments
(1 file, 1 obsolete file)
I don't have hard data on this aside from my dump statements but it looks like we can shave off about 300-900ms on the time it takes to generate the first preview by initializing the hardware while parsing the dom ( by using a seperate js file not deferred before the css )...
See my hack: https://github.com/lightsofapollo/gaia/compare/start-camera-init-really-early
Updated•12 years ago
|
Whiteboard: [fast:300ms-900ms] → [fast:300ms-900ms], [FFOS_perf]
Updated•12 years ago
|
blocking-b2g: leo? → tef?
Updated•12 years ago
|
Assignee: nobody → dale
Reporter | ||
Updated•12 years ago
|
Blocks: Camera-Startup
Comment 1•12 years ago
|
||
Dale, can you investigate on this and give us feedback to decide for blocking or not ?
Flags: needinfo?(dale)
Assignee | ||
Comment 2•12 years ago
|
||
I think this is a good idea, the hardware abstraction was planned anyway since the camera API became somewhat unweildy and needs to be seperated.
And my testing is similiar to James's, I will still need to test with everything fully working but it looks like around a 400ms speedup (and an extra 3/400ms with the async storage change)
Which are both significant speedups with not very intrusive changes, I will have both patches done tonight and suggest this blocks
Cheers James for investigating.
Flags: needinfo?(dale)
Comment 3•12 years ago
|
||
Okay, we'll block on this. Please give us a heads up if your fix(es) end up with the potential for serious regressions. Thanks.
blocking-b2g: tef? → tef+
Comment 4•12 years ago
|
||
Marking status-b2g18 and status-b2g18-v1.0.0 as affected, please update the status to fixed once this is verified landed on v1-train/mozilla-b2g18 and v1.0.0/mozilla-b2g18_v_1_0_0
status-b2g18:
--- → affected
status-b2g18-v1.0.0:
--- → affected
Assignee | ||
Comment 6•12 years ago
|
||
I am going to do more experimenting, but I dont believe there are significant gains in this approach anymore. I was seeing times around 150ms for parsing assets, and initialising the hardware early doesnt necessarily means it will be ready earlier.
https://bugzilla.mozilla.org/show_bug.cgi?id=821695 is much more important, working on that now
Flags: needinfo?(dale)
Comment 7•12 years ago
|
||
No longer blocking based on comment 6 and the doubt that we'll get huge wins here. Re-nom if that changes.
blocking-b2g: tef+ → -
Comment 8•12 years ago
|
||
Batch edit: Bugs marked status-b2g18: affected after 2/13 branching of v1.0.1 are now also status-b2g18-v1.0.1: affected
status-b2g18-v1.0.1:
--- → affected
Comment 9•12 years ago
|
||
Dale will provide a patch in few hours.
Assignee | ||
Comment 10•12 years ago
|
||
Attachment #721882 -
Flags: review?(21)
Assignee | ||
Comment 11•12 years ago
|
||
Attachment #721882 -
Attachment is obsolete: true
Attachment #721882 -
Flags: review?(21)
Attachment #721895 -
Flags: review?(21)
Comment 12•12 years ago
|
||
Comment on attachment 721895 [details]
Github PR
https://github.com/mozilla-b2g/gaia/commit/1f7dbc2534914620ba05126e99eb47991de758e6
Attachment #721895 -
Flags: review?(21) → review+
Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•12 years ago
|
blocking-b2g: - → leo?
Updated•12 years ago
|
blocking-b2g: tef? → tef+
Comment 15•12 years ago
|
||
This needs bug 841251. Please don't uplift until Bug 841251 is uplifted.
Depends on: 841251
Comment 16•12 years ago
|
||
(In reply to Michael Vines [:m1] [:evilmachines] from comment #14)
> (John, can we get a v1.0.1 uplift please?)
Still waiting on 841251 for v1.0.1
v1-train: 0542a2f3c2f33274a90082011a13ef5d8a8c315f
Comment 17•12 years ago
|
||
John, sorry for the mess.. Bug 841251 is not in v1-train yet :(
Flags: needinfo?(jhford)
Comment 18•12 years ago
|
||
Backed out as 42fb0a150b45ede69a51dd73af3a04ea1c7717b0
Flags: needinfo?(jhford)
Comment 19•12 years ago
|
||
Uplifted commit 1f7dbc2534914620ba05126e99eb47991de758e6 as:
v1-train: d0eeb90cddbdedd3c521d42f86a97ef33941d487
v1.0.1: 947a6cb04f500acaabb36d252c6464ea6475556d
Comment 21•12 years ago
|
||
Can you please provide steps to verify this fix - as we will blackbox test from the UI?
Assignee | ||
Comment 22•12 years ago
|
||
There was no functional change so I dont understand what steps to verify would be except that the app is as functional as it previously was
Comment 24•12 years ago
|
||
Probably best tested with datazilla.
Whiteboard: [fast:300ms-900ms], [FFOS_perf] → [fast:300ms-900ms], [FFOS_perf], [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•