Why is a JIT compiler faster than a byte-compiler

Discussion in 'Python' started by RickMuller, Mar 24, 2005.

  1. RickMuller

    RickMuller Guest

    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
     
    RickMuller, Mar 24, 2005
    #1
    1. Advertisements

  2. RickMuller

    dodoo Guest

    1. Advertisements

  3. RickMuller

    RickMuller Guest

    Thanks for the link. That completely answers my question.
     
    RickMuller, Mar 24, 2005
    #3
  4. Torsten Bronger, Mar 26, 2005
    #4
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.