Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Re: Re: Re: Re: Slowness when inserting into pre-extended array

by tilly (Archbishop)
on Jul 20, 2003 at 16:54 UTC ( [id://276061]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    N + r*N + r*r*N + r*r*r*N
        = (N + r*N + r*r*N + r*r*r*N)*(1-r)/(1-r)
        = (N + (r*N-r*N) + (r*r*N-r*r*N) + (r*r*r*N-r*r*r*N) + ...)/(1-r)
        = N/(1-r)
    
  2. or download this
    my $max_size = 0;
    my $size = 0;
    ...
        $last_pow = $last_pow + $last_pow;
      }
    }
    
  3. or download this
           2:         1 recopies.  Avg 0.50000 per element
           4:         6 recopies.  Avg 1.50000 per element
    ...
     2097152:  11734158 recopies.  Avg 5.59528 per element
     4194304:  24331784 recopies.  Avg 5.80115 per element
     8388608:  42045207 recopies.  Avg 5.01218 per element
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-07-25 03:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.