Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Is foreach split Optimized?

by Laurent_R (Canon)
on Jul 09, 2017 at 11:56 UTC ( [id://1194601]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        filehandle => sub {
            my @lines;
    ...
                push @lines, $_;            
            }
        },
    
  2. or download this
    $ perl bench_split.pl
               s/iter      regex      index      split filehandle
    ...
    index        3.13        10%         --       -29%       -43%
    split        2.21        56%        42%         --       -19%
    filehandle   1.78        93%        76%        24%         --
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1194601]
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-04-16 03:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found