The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search

Small Footprint

A few changes can be made to reduce the footprint of Rhino for embeddings where space is at a premium. On a recent build, Rhino consumed 355,883 bytes of space for uncompressed class files. With various changes that number can be reduced to 281,455 bytes.
 

Tools

Most embeddings won't need any of the classes in org.mozilla.javascript.tools or any of its subpackages.
 

Regular Expressions

The package org.mozilla.javascript.regexp can be removed. Rhino will continue to run, although it will not be able to execute any regular expression matches. This change saves 37,792 bytes of class files.
 

JavaAdapter

Implementing the JavaAdapter functionality requires the ability to generate classes on the fly. Removing org.mozilla.javascript.JavaAdapter and all the classes in package org.mozilla.classfile will disable this functionality, but Rhino will otherwise run correctly. This changes saves 36,636 bytes.
 



back to top
Copyright © 1998-1999 The Mozilla Organization.
Last modified June 10, 1999.