On 2/12/2010 8:18 PM, Philip Chee wrote:
> From a end user perspective. I have several different profiles, several
> of Firefox, SeaMonkey, and of Thunderbird. Some of these profiles can
> have up to 60 extensions installed. I back up my profiles twice a day to
> different external hard disks and I notice that for unjarrred extensions
> my incremental backup has to stat each file in each extension to
> determine of it needs to be backed up, while for jarred extensiones it
> only has to stat one jar file. The former causes a significant (it's all
> cumulative) hit on my backup time.
I hadn't considered the backup implications for those who do it often
such as yourself. I'll keep that in mind if I ever develop any large
extension. btw, I do archive my chrome/ directory tree for my theme
packaging since themes contain a significant number of files. After
reading this, I'll ensure that I continue to do so with theme packaging.
> From an extension developer perspective, I perfer jarred extensions. I
> got into extensiond development by joining the Flashblock team and I
> inherited some scripts that automated the jarring process so it's
> basically all transparent to me.
Most of my add-on activity evolves around themes but I do have a few
extensions that I keep maintained. My development environment is Windows
and I take advantage of the "Adding Extensions using the Windows
Registry" discussed here,
http://tinyurl.com/ykekh2q. In that way I am
able to make and test changes live, without the need to package/install
the modified files.
> From a SeaMonkey developer point of view I should point out that on
> Mozilla trunk (Firefox 3.7a1) the platform developers are moving
> aggressively towards jarring *everything* into one or at the most two
> large jar files. It appears that on slower platforms such as Wince
> opening handles to files is a slow and expensive process while mmaping
> already opened jar files is significantly faster. Now consider someone
> with 60+ unjarred extensions in his profile on an underpowered netbook
> running some version of Windows and imagine that Firefox has to stat
> every file in each extension on startup. The hit on the Ts performance
> would be palpable.
Hmm, that's very interesting. Does Mozilla open the jar file into
allocated memory and thereby removes the need to do a file stat? If so,
then wouldn't there be a performance trade-off between allocating a
significant amount of memory to cache the extensions chrome/ trees
versus the hit for doing file stat calls considering that most hard
drives have many megabytes of internal cache?
> The Fennec team is basically terribly unimpressed with how excruciating
> slow Windows Mobile is in this and other regards and if you are writing
> an extension for Firefox Mobile (Fennec) you should definitely jar your
> extension. Your users will thank you. Fennec developers will thank you.
> Plus you get lots of Karma points.
I'm not doing any work on stuff for Windows Mobile but thanks for the
heads-up in the event that I do find a need.
--
Sailfish - Netscape/Mozilla Champion
Netscape/Mozilla Tips: http://www.ufaq.org/ , http://ilias.ca/
Rare Mozilla Stuff: http://www.projectit.com/