4 ms·
If I understand correctly, Perl is written in C. That means that it must be possible to write this in C so that it runs at least as fast as Perl does (in the w
by AnimalMuppet 13y ago
If I understand correctly, Perl is written in C. That means that it must be possible to write this in C so that it runs at least as fast as Perl does (in the worst case, write a Perl interpreter in C...)
So I suspect that the C code wasn't written as optimally as it could be.
Maybe the point is that a naive implementation in Perl has better performance than a naive implementation in other languages?