by hgftr · 3y ago · 0 comments
So, if that version was 40x slower than C (and that is very optimistic), the latest version is still 30x slower. That is the point that the GP made.
I would not call that substantial at all. I'd prefer to keep the CPython interpreter simple, people who want faster Python can use pypy or other things.
The real work in scientific Python will always be done in C or CUDA extensions. No 50% speedup will change anything.
X’ X’/Y X’/Y
0.5 = – = –––– = ––––
X X/Y 40
X’
=> – = 20
YAs a baseline, my code can do 100 operations / second.
With 50% speedup (+50%), my code can do 150 operations / second.
If C was 40x faster than the baseline, it could do 4000 operations / second. After the speedup C can still do 27x as many operations per second. (4000/150 = 26.66..)