Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
cutler
6y ago
0 comments
Save
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
2 comments · 1 top-level
top
newest
oldest
lizmat
6y ago
· 1 in thread
Do you have a gist of your code and a representative sample of the log file you're parsing?
cutler
OP
6y ago
It's a one-liner:
for 'logs1.txt'.IO.lines -> $_ { .say if $_ ~~ /<<\w ** 15>>/; }
j
/
k
navigate · click thread line to collapse