Subj : Re: Dynamically Loading Host Objects To : Eric Merritt From : Igor Bukanov Date : Tue Aug 26 2003 08:42 pm > == Eric Merritt >> == self > >>Try to remove >>org.mozilla.javascript.optimizer.InvokerImpl class >>for your Rhino jar. >>The class generates a special proxy classes to >>speedup invocation of >>functions defined by ScriptableObject.defineClass by >>avoiding using Java >>reflection for method calls. But it may have >>problems with loading of >>classes. > > > Indeed the program does die in the invoke method of > the above mentioned class. > > What kind of performance degredation would the > removal of this class cause. Under JDK 1.3 it is not noticeable unless you have some specially constructed scripts that calls inside tight loops host objects. Under JDK 1.4 the win is even smaller and probably the optimization is not worth the troubles at all. Regards, Igor .