Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Rakudo Perl 6 and MoarVM Performance Advances

by grondilu (Friar)
on Sep 05, 2014 at 06:14 UTC ( [id://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 (Pilgrim) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1099627]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-06-17 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.