Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Autogenerate descending arrays

by kappa (Chaplain)
on Mar 14, 2004 at 22:08 UTC ( #336548=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://336548]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2022-06-29 06:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (94 votes). Check out past polls.

    Notices?