Naive number questions

Andreas Raab andreas.raab at gmx.de
Tue Nov 2 21:42:16 UTC 2004


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 at studentenbude.ath.cx>
To: "The general-purpose Squeak developers list" 
<squeak-dev at 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




More information about the Squeak-dev mailing list