Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72079

Re: Python is horribly slow compared to bash!!

From Johannes Bauer <dfnsonfsduifb@gmx.de>
Newsgroups comp.lang.python
Subject Re: Python is horribly slow compared to bash!!
Date 2014-05-26 19:00 +0200
Organization albasani.net
Message-ID <llvru7$a33$1@news.albasani.net> (permalink)
References <mailman.10217.1400756071.18130.python-list@python.org> <8848706d-405b-482e-8fba-4470e903ba02@googlegroups.com>

Show all headers | View raw


On 22.05.2014 15:43, wxjmfauth@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@speranza.aioe.org>

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python is horribly slow compared to bash!! Chris Angelico <rosuav@gmail.com> - 2014-05-22 20:54 +1000
  Re: Python is horribly slow compared to bash!! wxjmfauth@gmail.com - 2014-05-22 06:43 -0700
    Re: Python is horribly slow compared to bash!! Johannes Bauer <dfnsonfsduifb@gmx.de> - 2014-05-26 19:00 +0200
      Re: Python is horribly slow compared to bash!! Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-05-26 19:19 -0400
        Re: Python is horribly slow compared to bash!! Grant Edwards <invalid@invalid.invalid> - 2014-05-27 14:12 +0000
          Re: Python is horribly slow compared to bash!! Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-05-27 20:26 -0400
  Re: Python is horribly slow compared to bash!! Mark H Harris <harrismh777@gmail.com> - 2014-05-22 14:17 -0500

csiph-web