Python is horribly slow compared to bash!!

Johannes Bauer dfnsonfsduifb at gmx.de
Mon May 26 13:00:11 EDT 2014


On 22.05.2014 15:43, wxjmfauth at gmail.com wrote:

> I can take the same application and replace 'z' by ..., and
> ... No, I do not win :-( . Python fails.

That's nothing. I can make an application a TOUSAND times slower by
changing the constant 1 to a 2. Python is such utter garbage!

import time

def myfunction(constant):
	if constant == 1:
		time.sleep(1)
	else:
		time.sleep(1000)

constant = 1
myfunction(constant)

Now let's all code Itanium assembler, yes?

Cheers,
Johannes

-- 
>> Wo hattest Du das Beben nochmal GENAU vorhergesagt?
> Zumindest nicht öffentlich!
Ah, der neueste und bis heute genialste Streich unsere großen
Kosmologen: Die Geheim-Vorhersage.
 - Karl Kaos über Rüdiger Thomas in dsa <hidbv3$om2$1 at speranza.aioe.org>



More information about the Python-list mailing list