3 ms·
> 4. Code written in RPython is faster than code written for a nearly identical purpose in C. This is where your argument falls down. Selection sort and heap
by jemfinch 16y ago
> 4. Code written in RPython is faster than code written for a nearly identical purpose in C.
This is where your argument falls down. Selection sort and heap sort are both written for the identical purpose, but due to their different designs and different complexities, a heap sort written in ordinary Python would outperform a selection sort written in C for a great many inputs. This does not prove that Python is faster than C, it simply proves that two programs, even written for the identical purpose, can achieve that purpose in vastly different ways, and those differences can greatly impact the performance of those programs.
- jemfinch 16y agoA downmod but no counterargument? Sad.