Closed Bug 659104 Opened 13 years ago Closed 12 years ago

untangle stdlib deps to make small XPIs smaller

Categories

(Add-on SDK Graveyard :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 731779

People

(Reporter: warner, Assigned: warner)

Details

Bug 653256 added the --strip-xpi option, to limit the XPI to modules that are actually used by the add-on. Without this, all XPIs are at least 246kB. However, even with this, XPIs can be larger than expected: dietrich noticed his drop to 164kB, which still seemed high.

At this point, the problem is going to be stdlib modules that depend upon each other. The manifest-scanner must include everything in the transitive closure of the "A require()s B" relationship, and a tangled stdlib dependency graph means that a lot of the stdlib may be included even through the top-level addon code doesn't directly use it.

This bug is about looking at the stdlib dependency graph, and finding ways to rearrange it to reduce this tangle and make --strip-xpi'ed XPIs smaller.
Priority: -- → P1
Target Milestone: --- → Future
Assignee: nobody → warner-bugzilla
(Pushing all open bugs to the --- milestone for the new triage system)
Target Milestone: Future → ---
Addons should be much smaller once we land the APIs into Firefox.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.