Re: Minimum & Maximum

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

Hawke wrote:

>try:
>1   if atom(a) then             --jne 4 (gotta do at least this)
>2      if b<a then a=b end if   --
>3      return a                 --no jmp here, we exit
>4   else
>5      for...endfor
>6   end if
>7   return a
>what this does (i think) is save a jmp statement to the
>"return a" after the "end if" at the end of the function...
>rule is: get out while the getting is good...
>try rerunning the benchmarks with/without this in place...
>try with 10,000,000 iterations...
>lemme know???


Ok, but one million only, after all it's 1.15 am. Good night. jiri


                                      Mike's      Mine   Modified
=================================================================
5,3                                    1.14       0.92       0.91
{5,3,1},{-5,2,6}                       6.69       6.90       6.83
{5,3,{4,5},1},{-5,2,{-7,7},6}         11.89      13.33      13.10

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

Search



Quick Links

User menu

Not signed in.

Misc Menu