[Python-Dev] Python 3 optimizations, continued, continued again... (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Mon Jan 30 20:13:52 CET 2012


Hello,

Well, you can implement threaded code on any machine that support indirect branch instructions. Fortunately, GCC supports the "label-as-values" feature, which makes it available on any machine that supports GCC. My optimizations themselves are portable, and I tested them on a PowerPC for my thesis, too. (AFAIR, llvm supports this feature, too.)

Well, you're aware that Python already uses threaded code where available? Or are you testing against Python 2?

Regards

Antoine.



More information about the Python-Dev mailing list