todesschaf/cache-usage-stats-addon — pull request #1 by nmaier (2012-06-04 22:57:28+00:00)
Title:  New implementation as plain bootstrapped add-on 

Constructing this add-on as a JetPack does not warrant the overhead incurred from the Add-on SDK.
This avoids loading all the Jetpack stuff (multiple js sandboxes, etc.), brings down the memory use from 4MB to 1MB (for me[1]) and brings the XPI size down to roughly 2KB.

Also:
- Do not namespace the JS stuff (not needed)
- Use startup()/shutdown() without the need for observers
- Implement proper charset conversation for output files (utf-8 output)
- Refactor a bit.

[1] as measured with https://github.com/nmaier/about-addons-memory