rewrite optimizejar.py in javascript

RESOLVED WONTFIX

Status

Firefox OS
Gaia::Build
RESOLVED WONTFIX
4 years ago
2 years ago

People

(Reporter: yurenju, Assigned: gduan)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

we get optimizejar.py to reorder file structure in zip for optimization but we should have js version of optimizejar.py for master branch.

Comment 1

4 years ago
BTW, the python version of that program is actually the 2nd version. I wrote the original version in C, and it might be easier to understand. https://bug552121.bugzilla.mozilla.org/attachment.cgi?id=432276 

That version doesn't have a special optimization that puts a readahead size in front of the zip though. But, it's available as a reference in case it could be helpful.
cool and we should try to migrate optimizejar.[py|js] to webapp-zip.js then we don't have second pass to optimizejar.
it would be better if log files are moved to $APP/build/.
Component: Gaia → Gaia::Build
Assignee: nobody → gduan
Hi George, any progress for this issue?
Flags: needinfo?(gduan)
feel free to reopen and take it if anyone is interest. 

the challenge here is js doesn't support python nor c native api well, so it requires xpcom's magic api to handle it. It requires more time to implement it, and it's not so urgent for now.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Flags: needinfo?(gduan)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.