Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 17:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found