Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Rakudo Perl 6 and MoarVM Performance Advances

by grondilu (Friar)
on Sep 05, 2014 at 06:14 UTC ( #1099627=note: print w/replies, xml ) Need Help??


in reply to Re: Rakudo Perl 6 and MoarVM Performance Advances
in thread Rakudo Perl 6 and MoarVM Performance Advances

That's not great indeed. I don't really hope this will make much of a difference, but you did not have to capture the match with parenthesis. You could have just used $/:

perl6 -n -e 'say $/ if m/<<\w**5>>/' logs.txt

On the other hand, even if this does make a difference, the optimizer should have converted it automatically.

Replies are listed 'Best First'.
Re^3: Rakudo Perl 6 and MoarVM Performance Advances
by gunzip (Monk) on Sep 05, 2014 at 06:37 UTC

    Perl 6 now 2 mins. 20 seconds. For the record Ruby 2.1:

    ruby -wnl -e 'puts $1 if /\b(\w{5})\b/' logs.txt

    ... completed in 2 seconds.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2018-07-18 04:45 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 (383 votes). Check out past polls.

    Notices?