The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Newsbot
Development
Roadmap
Module Owners
Blue Sky
Projects
Status
Tools
Products
Source Code
Binaries
Documentation
License Terms
Bug Reports
Quality
Search
Feedback

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.