Can Squeak be faster than Java? Yes :-)

Klaus D. Witzel klaus.witzel at cobss.com
Fri Feb 16 22:47:12 UTC 2007


Hi Michael,

on Fri, 16 Feb 2007 23:26:34 +0100, you wrote:
> Hi Klaus,
>
> On 2/16/07, Klaus D. Witzel wrote:
>> FWIW, I think that the main reason for this difference is the heavy  
>> string
>> processing in the vendor's libraries, once per exception thrown.
>
> yup. In JVM implementations, the link to the meta level is not as
> direct as in Smalltalk VMs. This explains why Squeak is better off
> than Java.

:) but, again, this is not asked for in Google's summer of code 2007 :(

> VW still being *much* better is interesting, though. Perhaps the JIT
> compiler kicks in, or the interpreter is much smarter. In Squeak, it
> can't, and in Java, it doesn't. (At least here: Macbook Pro running OS
> X, Apple JVM 1.5.0_07, verified by running the "benchmark" both with
> "java" and "java -Xint".)
>
> Could someone with access to VW VM internals please tell me what
> happens in there? I'm curious. :-)

I'm not a VW VM expert but the main difference is

- http://www.google.com/search?q=visualworks+context+to+stack+mapping

/Klaus

> Best,
>
> Michael
>
>





More information about the Squeak-dev mailing list