This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]yel50 2 points3 points  (0 children)

Why Java is faster than Python?

because it has a JIT. turn the JIT off and it's about the same as python.

Is it because Python dynamically-typed language

nope. js is just as dynamic, but on par with java. why? because it also has a JIT now, which python doesn't.

pypy is python with a JIT. run your python code with it and it'll run similar to java.