Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python VS Java VS PHP

Name: Anonymous 2010-06-14 8:33

Hey /prog/

Which of the three is generally faster? I know there are some specific cases where one performs much better than it does elsewhere but I am speaking of the common situation.

Name: Anonymous 2010-06-14 11:51

>>13
First of all it's almost all hashtables of course. Except for local variables and special methods like __add__ or __getattr__.

But the main reason is that it kinda adds up if you have to make an indirect function call (with all checks of course) to add two integers. Having to allocate the result on heap doesn't help either. And to check that it's really integers you are adding. I mean, it doesn't hurt too much when your sys calls or even method invocations go through several indirections, but when every single operation on anything at all does it, more than once, the shit becomes rather slow.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List