Begin forwarded message:
From: "Andreas Raab" andreas.raab@gmx.de Date: 2 novembre 2004 22:42:16 GMT+01:00 To: "The general-purpose Squeak developers list" squeak-dev@lists.squeakfoundation.org Subject: Re: Naive number questions Reply-To: The general-purpose Squeak developers list squeak-dev@lists.squeakfoundation.org
Heh - I was going to write message saying that I'd like to see a measure of the actual difference in speed if we change this to:
[x := 1000 * 10000000] timeToRun.
:^) Besides, one of the more interesting things to do is to not use "long/int" but rather the Object integer type.
Cheers,
- Andreas
----- Original Message ----- From: "Patrick Mauritz" oxygene@studentenbude.ath.cx To: "The general-purpose Squeak developers list" squeak-dev@lists.squeakfoundation.org Sent: Tuesday, November 02, 2004 12:55 PM Subject: Re: Naive number questions
Am Dienstag, 2. November 2004 21:41 schrieb stéphane ducasse:
in Squeak: but it took a lot more (in fact I stopped it). Is there any reason why?
because that code is ideal for a JIT (any compiler really - only constants, minimalistic parse trees) to figure out how to optimize.. actually I'm amazed that it's that much, instead of optimizing it to just three assignments.
patrick mauritz
squeak-fr@lists.squeakfoundation.org