Closed Bug 932959 Opened 11 years ago Closed 6 years ago

webappzip is very slow (without optimize!)

Categories

(Firefox OS Graveyard :: Gaia, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jlal, Unassigned)

References

Details

(Whiteboard: [perf-reviewed])

Even on my SSD (and travis uses SSD as well) zipping is a very slow process (on my fast machine)

(all the things!)
make profile  11.58s user 1.51s system 101% cpu 12.953 total

make BUILD_APP_NAME=email  1.15s user 0.36s system 33% cpu 4.510 total
make BUILD_APP_NAME=system  0.78s user 0.37s system 103% cpu 1.118 total
make BUILD_APP_NAME=calendar  0.62s user 0.35s system 104% cpu 0.921 total
---

Some ideas would be to use less compression https://github.com/mozilla-b2g/gaia/blob/master/build/webapp-zip.js#L35. Using none http://mxr.mozilla.org/mozilla-central/source/modules/libjar/zipwriter/public/nsIZipWriter.idl#40 seems to yield better results:

make  3.88s user 1.47s system 101% cpu 5.277 total

I don't believe the level of compression is important for tests (but using packaged apps are!).
Whiteboard: [perf-reviewed]
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.