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

WTF is up with python?

Name: Anonymous 2007-04-22 19:03 ID:QUkGtLGA

x = 0
while x < 100000000:
  x += 1

the above code takes ~35 seconds to run on my computer. WTF???

Name: Anonymous 2007-04-23 18:33 ID:pGX5eyL8

>>1
Python on Win32: 26.828s
GCC/MinGW 3.4.2: 0.328s
(and not because of any overhead - verified with 10 iterations)

Python with psyco (dynamic specializator) on Win32: 0.047s

Hint: OWNED! FUCKING OWNED YOU FAGGOT!

Using psyco:


import psyco
psyco.full()
def main():
 #Your code begins here, intact
 x = 0
 while x < 100000000:
   x += 1


Does psyco really run 100M iterations? I doubt it. It shouldn't be faster than C. It most surely detected what I was doing was bullshit and dynamically optimized function main to return None.

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