in reply to Re: Autogenerate descending arrays
in thread Autogenerate descending arrays

By the way, using reverse is faster because this case is optimized as the action mentioned in the subject is very common :)

Replies are listed 'Best First'.
Re: Re: Re: Autogenerate descending arrays
by ysth (Canon) on Mar 14, 2004 at 23:25 UTC
    How is it optimized?
      I stand corrected. Looks like foreach (reverse 1 .. 1000000) still generates a huge temporary list.