optimization....help

new topic     » topic index » view thread      » older message » newer message

------=_NextPart_000_0014_01C03AE9.698838E0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello all,

Can the below loop be optimized further?

I know that takeing the multiplies out should do it
but am at a lose on this.......

----- begin -----------

count =3D 1=20
across =3D 262
down =3D 236

seq =3D repeat(0,down)  =20
=20
for x =3D 1 to down do   =20
    seq[x] =3D r[count..across * x]=20
    count  =3D across * x + 1
end for

--- end -------------------

euman at bellsouth.net


------=_NextPart_000_0014_01C03AE9.698838E0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can the below loop be optimized=20
further?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I know that takeing the multiplies out =
should do=20
it</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>but am at a lose on =
this.......</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>----- begin -----------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>count =3D 1 </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>across =3D 262</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>down =3D 236</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT>
<DIV><FONT face=3DArial size=3D2>seq =3D=20
<DIV><FONT face=3DArial size=3D2>for x =3D 1 to down =
do&nbsp;&nbsp;&nbsp;=20
<BR>&nbsp;&nbsp;&nbsp; seq[x] =3D r[count..across * x] =
<BR>&nbsp;&nbsp;&nbsp;=20
count&nbsp; =3D across * x + 1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>end for</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>--- end =
-------------------</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><A=20

------=_NextPart_000_0014_01C03AE9.698838E0--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu