3 ms·
This probably has a simple answer, and is something I can easily google. But it's always been in the back of my mind, what optimizations would be possible if yo
by ubercore 2mo ago
This probably has a simple answer, and is something I can easily google. But it's always been in the back of my mind, what optimizations would be possible if you took actual python code and forced 100% type annotation. Could you meaningfully speed that up at the interpreter or with some pre-processing or compilation?
EDIT: I guess this kind of answers my curiosity: https://programming-journal.org/2023/7/2/ https://programming-journal.org/2023/7/2/
- Etheryte 2mo agoCompare the same algorithm/program in Python and C and that's roughly your answer, no?
- actionfromafar 2mo agoPython to C++ compiler: https://shedskin.github.io/ https://shedskin.github.io/