Why is a JIT compiler faster than a byte-compiler

R

RickMuller

I was talking to a friend of mine about the speed of Python code. One
of the questions that came up was why is a JIT compiler like Psyco
faster than the Python byte-compiler? I understand why languages like
Pyrex are faster, since they set static types that the compiler can use
to optimize. But why is Psyco faster? I would think that any
optimizations that Psyco makes could just as easily be made by the
byte-compiler, but obviously this is not the case, since Psyco runs
something like 4x faster, and I also understand that similar speedups
are seen by Java JIT compilers. What am I missing? Thanks in advance.

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top