Subj : Re: The smallest customized Rhino? To : James Zhou From : Igor Bukanov Date : Tue Apr 22 2003 01:13 am James Zhou wrote: > "Norris Boyd" wrote in message > news:3E9E03C1.8000908@atg.com... > >>Have you looked at http://www.mozilla.org/rhino/footprint.html? >> > > > Thanks. Based on the link and information you mentioned, > I made some tests. But it seems that the final code size > is still very big. > > The full dist build is 583K in jar file. Then I remove classfile, > tools, JavaAdapter.java, optimizer, regexp. This time the > code size ('default' target) is 300K in jar file. Its > uncompressed class files is nearly 600K, which is far bigger > than the size of 281K mentioned in Rhino web site. > > BTW, I am working on the latest release version rhino1_5R4. > > I don't know what else can be removed from the package. You can remove the serialize package and the following list of classes and still have Ecma-confirming implementation: ClassNameHelper ClassRepository FunctionObject ImporterTopLevel Invoker LazilyLoadedCtor NativeJavaPackage NativeJavaObject NativeJavaMethod JavaMembers NativeJavaArray Synchronizer You will have to comment out some of the code after the removal of the whole list, but the interpreter should still work OK. You can also remove all deprecated code and run any code shrinker on the rest of classes. > Or maybe I should work on an old version? The code size for 1.5R2 was increased compared with 1.5R1 as a result of internal reorganization but that decreased the total memory consumption by JVM significantly. Regards, Igor .