Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cutler
on June 25, 2020
|
parent
|
context
|
favorite
| on:
Perl 7 is going to be Perl 5.32, mostly
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.
lizmat
on June 25, 2020
[–]
Do you have a gist of your code and a representative sample of the log file you're parsing?
cutler
on June 25, 2020
|
parent
[–]
It's a one-liner:
for 'logs1.txt'.IO.lines -> $_ { .say if $_ ~~ /<<\w ** 15>>/; }
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: