Re: Code to optimize.

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

EU>        Here is a small chunk a code to be optimized.
EU>Anyone care to scrutinize(sp) its ineffeciency?(sp)
EU>I am well aware that this code has a lot of speed to be gained.
EU>I just haven't taken the time to tweak it.  I fill this would be a
EU>good simple challange.        HAVE FUN./Happy New Year. 8^)


EU> temp = {}
EU>  cnt = 0
EU>  while lm > cnt do
EU>    cnt = cnt + lr
EU>    temp = temp & r
EU>  end while
EU>  temp = temp[1..lm]

What are lm, lr, and r? If r is just an atom, this would work much
faster:

temp = repeat(r,lm)


EU>_________________________

EU>Lucius L. Hilley III    lhilley at cdc.net
EU>http://www.cdc.net/~lhilley
EU>http://www.dragonvet.com
EU>_________________________
EU><IMG SRC="http://www.cdc.net/~ceace/images/lu4.jpg">

Jeffrey Fielding
JJProg at cyberbury.net
http://members.tripod.com/~JJProg/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu