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

Re^4: Question about the most efficient way to read Apache log files without All-In-One Modules from CPAN (personal learning exercise)

by lulz (Initiate)
on Jun 17, 2015 at 19:13 UTC ( #1130865=note: print w/replies, xml ) Need Help??


in reply to Re^3: Question about the most efficient way to read Apache log files without All-In-One Modules from CPAN (personal learning exercise)
in thread Question about the most efficient way to read Apache log files without All-In-One Modules from CPAN (personal learning exercise)

Thanks for your reply!

A quick question dealing with the internal workings of what you wrote:

I understand that the split function can take any expression as its element then operate on the scalar, but what would be the more nuanced differences, particularly with memory usage and processing speed, if any, between using split and a general pattern match?

Thanks!

  • Comment on Re^4: Question about the most efficient way to read Apache log files without All-In-One Modules from CPAN (personal learning exercise)

Replies are listed 'Best First'.
Re^5: Question about the most efficient way to read Apache log files without All-In-One Modules from CPAN (personal learning exercise)
by karlgoethebier (Monsignor) on Jun 17, 2015 at 19:53 UTC

    You can measure the speed of your code with the time command. Or use Time::HiRes. Or Benchmark. See also Devel::Size and Devel::NYTProf.

    And don't forget to try Super Search. I'm sure that you will find many examples that use time, Benchmark, Time::HiRes, Devel::Size and Devel::NYTProf.

    Regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

      Thank you!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1130865]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2018-07-19 06:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (403 votes). Check out past polls.

    Notices?