Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Autogenerate descending arrays

by kappa (Chaplain)
on Mar 14, 2004 at 22:08 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 21:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found