On 29/09/09 10:25, Jyrki Saarinen wrote: > Stefan Weiss wrote: >> I'm relatively new to Rhino, and I've noticed that the first time a >> certain JS function is executed, it's rather slow, but repeated calls >> are getting faster: [...] > It is the JIT compiler in the JVM that has started to compile bytecode > into native code.
Thanks, that's what I thought, too. >> AFAIK, there is no JIT compiler in Rhino, at least not in the version >> included in Java 6 SE, and Sun's guide [0] says that "JavaScript-to- >> bytecode compilation (also called 'optimizer')" has been excluded in >> their version. > > Rhino is implemented in Java. Thus it is compiled into byte code, which > is then JIT compiled to native code. "it" referring to the interpreted JavaScript, I suppose. I just wasn't sure if it was all HotSpot, or if there was some intrinsic optimizer in Rhino. cheers, stefan _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
