Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
cutler
5y ago
0 comments
Share
On my 4-core i7 Macbook Pro parsing a 20Mb log file with a regex takes 9.4 times longer with Raku than Perl5. That's unacceptable. Adding Moose to Perl5 reduces the differential to 7.1 which is still huge.
0 comments
default
newest
oldest
lizmat
5y ago
Do you have a gist of your code and a representative sample of the log file you're parsing?
cutler
OP
5y ago
It's a one-liner:
for 'logs1.txt'.IO.lines -> $_ { .say if $_ ~~ /<<\w ** 15>>/; }
j
/
k
navigate · click thread line to collapse