Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Is it computationally expensive to return a large string (50-100 kB) from a sub?

by Russ (Deacon)
on Jun 20, 2000 at 12:09 UTC ( #18953=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub Str {
      my $Str = q{
    ...
    Benchmark: timing 10000 iterations of Str...
           Str: 29 wallclock secs (28.64 usr +  0.01 sys = 28.65 CPU)
    
  2. or download this
    sub Ref {
      my $Str = q{
    ...
    });
    Benchmark: timing 10000 iterations of Ref...
           Ref:  9 wallclock secs (10.50 usr +  0.00 sys = 10.50 CPU)
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2022-05-17 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (65 votes). Check out past polls.

    Notices?