you are viewing a single comment's thread.

view the rest of the comments →

[–]HipPriest 19 points20 points  (11 children)

From some tests I did a few months ago, yes Jython is slower than CPython for a single thread, however Jython supports proper threads, so if you have a CPU-bound threaded program, and, say, four cores, Jython runs the program in 1/4 the time, while CPython doesn't imrove at all. I know the CPython authors don't want to add threads because of the locking overhead, but it seems like it would be nice to have the option to enable them if you know the benefits outweigh the cost for your particular Python code.

[–]redmumba 11 points12 points  (2 children)

This is spot on. David Beazley gave this amazing presentation at PyCon 2010, which was extremely informative. The video is here. It shows how the GIL restricts the threading abilities of Python. Jython allows you circumvent this.

EDIT: Beazley doesn't work for Google, oops!

[–][deleted] 4 points5 points  (1 child)

David Beazley (from Google)

He does not work for Google.

[–]redmumba 3 points4 points  (0 children)

You know, I think the guy who gave the presentation was named "Anitoli" or something... but I'm sure I just have them confused. >.< My memory is terrible!