in reply to Re: $x = `cat big_file` seg faults
in thread $x = `cat big_file` seg faults

So the newer perl still fails, but much faster :-)

So much for "Perl is slow". We even optimize the performance of bugs ;-)

But really, i rather suspect that after the first run with 5.34, the operating system cached parts of the file in memory.

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
Also check out my sisters artwork and my weekly webcomics

Replies are listed 'Best First'.
Re^3: $x = `cat big_file` seg faults
by choroba (Cardinal) on Sep 10, 2024 at 11:41 UTC
    You are right. Repeated experiments show comparable times across Perl versions.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]