2 ms·
Perl was pitched initially as a replacement for shell-scripting + sed + awk; if you take that as a baseline, Perl is usually much faster. Many of the other "slo
by _delirium 16y ago
Perl was pitched initially as a replacement for shell-scripting + sed + awk; if you take that as a baseline, Perl is usually much faster. Many of the other "slow" languages seem to pitch themselves as competitors in wider spaces.
The text-processing focus, especially early on, might also be a factor, because if you're mainly banging data through regexes, it's pretty fast. The super-fancy regexes-that-are-more-than-regular do have degenerate cases, but they're fast in a wide range of cases, and in my comparisons usually beat sed.