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. Advertising

  2. RickMuller

    dodoo Guest

    1. Advertising

  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
  5. http://www-106.ibm.com/developerworks/linux/library/l-psyco.html?t=gr,lnxw03=PsycoC
    http://gnosis.cx/publish/programming/charming_python_b9.html


    On Sat, 26 Mar 2005 11:22:03 +0100, Torsten Bronger
    <-aachen.de> wrote:
    > Hallöchen!
    >
    > "dodoo" <> writes:
    >
    > > http://www-900.ibm.com/developerworks/cn/linux/sdk/python/charm-28/index_eng.shtml

    >
    > I can't reach it. Is there an alternative URL?
    >
    > Tschö,
    > Torsten.
    >
    > --
    > Torsten Bronger, aquisgrana, europa vetus
    > --
    > http://mail.python.org/mailman/listinfo/python-list
    >



    --
    Best regards,
    Alexey.
    Alexey Shamrin, Mar 26, 2005
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. drv

    JIT Compiler

    drv, Jul 9, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,521
  2. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,763
    Smokey Grindel
    Dec 2, 2006
  3. Ken

    Failed to load JIT compiler

    Ken, May 7, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    910
  4. Luis M. González

    per-method jit compiler

    Luis M. González, Apr 6, 2010, in forum: Python
    Replies:
    1
    Views:
    464
    Irmen de Jong
    Apr 6, 2010
  5. Luis M. González

    per-function jit compiler

    Luis M. González, Apr 6, 2010, in forum: Python
    Replies:
    3
    Views:
    266
    Gabriel Genellina
    Apr 6, 2010
Loading...

Share This Page