Closed
Bug 983564
Opened 10 years ago
Closed 10 years ago
[Gaia] [Build] reduce |make| time
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gduan, Assigned: gduan)
Details
Attachments
(1 file)
Find ways to reduce the time for |make|.
Assignee | ||
Comment 1•10 years ago
|
||
When execute |time make|, here's the result as below. real 0m44.264s user 0m34.328s sys 0m8.281s
Assignee | ||
Comment 2•10 years ago
|
||
After this patch real 0m29.489s user 0m20.891s sys 0m6.552s
Assignee | ||
Comment 3•10 years ago
|
||
We've called utils.getGaia too many times in webapp-zip.js and webapp-manifest.js , I suggest we can cache the data inside utils.js. And we'll also refactor these two scripts later.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → gduan
Assignee | ||
Comment 4•10 years ago
|
||
Comment on attachment 8391087 [details] [review] PR to master Hi Yuren, I believe this simple patch can reduce the |make| consuming time. Please kindly check. Thanks.
Attachment #8391087 -
Flags: review?(yurenju.mozilla)
Comment 5•10 years ago
|
||
Comment on attachment 8391087 [details] [review] PR to master George, could you use sinleton pattern for it? we can use utils.gaia.getInstance() to get it and you can keep the instance in utils.gaia.
Attachment #8391087 -
Flags: review?(yurenju.mozilla)
Assignee | ||
Comment 6•10 years ago
|
||
Comment on attachment 8391087 [details] [review] PR to master Hi Yuren, patch is updated, please kindly check, thanks.
Attachment #8391087 -
Flags: review?(yurenju.mozilla)
Comment 7•10 years ago
|
||
Comment on attachment 8391087 [details] [review] PR to master r=yurenju if this.data is changed to this.instance, thank you!
Attachment #8391087 -
Flags: review?(yurenju.mozilla) → review+
Assignee | ||
Comment 8•10 years ago
|
||
push to tbpl https://tbpl.mozilla.org/?tree=Try&rev=d961a2f2bfb8
Assignee | ||
Comment 9•10 years ago
|
||
Merge into master, https://github.com/mozilla-b2g/gaia/commit/a04f630e0a2bf382c9afe21784e357238434b32c
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•