Closed Bug 970748 Opened 10 years ago Closed 9 years ago

rewrite optimizejar.py in javascript

Categories

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

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: yurenju, Assigned: gduan)

References

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.
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
Closed: 9 years ago
Flags: needinfo?(gduan)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.