Re: Robert faster?
On Thu, 12 Jun 1997 12:26:29 -0400 Robert Craig
<robert_craig at COMPUSERVE.COM> writes:
>Lucius Hilley writes:
>> Which would be better?
>
>> integer width, height
>> sequence s
>
>> width =5
>> height = 10
>> faster = 1 -- should faster =3D 1 or 0?
>> if faster then
>> s = repeat(repeat(0, width), height)
>> else
>> s = repeat(0, height)
>
>> end if
>> for a = 1 to height do
>> s[a] = {a, a + 1, a + 2, a + 3, a + 4}
>> end for
>I haven't timed it, but I'm pretty sure the "repeat(0, height)"
>method would be faster, i.e. faster = 0.
>Regards,
> Rob Craig
> Rapid Deployment Software
>
I know how to time them.
THANKS
My question is more along the lines.
Will Euphoria IGNORE the fact that
the appropriate amount of 2-Dimensional
space has been allocated and then
Completely recreate each sequence.
You should know the Dynamics of Euphoria.
seq = {{0, 0}, {0, 0}
Does seq become {0, {0, 0}}
{5, 6} to s[1] then becoming
{{5, 6}, {0, 0} Or will the
allocated space speed up the process.
I guess I could call this Points to Ponder.
I will be testing the speeds before your next
response.
--Lucius Lamar Hilley III
-- E-mail at luciuslhilleyiii at juno.com
-- I support transferring of files less than 60K.
-- I can Decode both UU and Base64 format.
|
Not Categorized, Please Help
|
|