Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: append to a string or make an array? (memory and time efficiency)

by Abigail-II (Bishop)
on Jul 25, 2003 at 08:06 UTC ( #277814=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $buffer .= "x" x 1024 for 0 .. 5;
        print length $buffer;
    
  2. or download this
    #!/usr/bin/perl
    
    ...
                    Rate   push64k_100 append64k_100
    push64k_100   22.5/s            --          -76%
    append64k_100 94.7/s          320%            --
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2022-11-29 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?