Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is IronPython faster than the Official Python Interpreter

According to this:

http://www.codeplex.com/IronPython/Wiki/View.aspx?title=IP20VsCPy25Perf&referringTitle=IronPython%20Performance

IronPython (Python for .Net) is faster than regular Python (cPython) on the same machine. Why is this? I would think compiled C code would always be faster than the equivalent CLI bytecode.

like image 827
Tristan Havelick Avatar asked Feb 02 '09 20:02

Tristan Havelick


1 Answers

Python code doesn't get compiled to C, Python itself is written in C and interprets Python bytecode. CIL gets compiled to machine code, which is why you see better performance when using IronPython.

like image 172
Serafina Brocious Avatar answered Oct 04 '22 02:10

Serafina Brocious