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


Groups > comp.lang.python > #4083

Re: client-server parallellised number crunching

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!news.wiretrip.org!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <drsalists@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'received:209.85.212.46': 0.03; 'received:mail-vw0-f46.google.com': 0.03; 'python.': 0.05; 'loop,': 0.07; 'python?': 0.07; 'graph': 0.09; 'question:': 0.09; 'pm,': 0.11; 'wrote:': 0.14; 'profiling),': 0.16; 'subject:server': 0.16; 'suggest': 0.19; 'rewrite': 0.19; 'tue,': 0.20; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'header:In- Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'loop': 0.22; 'received:209.85.212': 0.25; 'chris': 0.27; 'message- id:@mail.gmail.com': 0.28; 'all.': 0.30; 'cc:addr:python.org': 0.31; 'doing': 0.36; 'rest': 0.37; 'received:209.85': 0.37; 'apr': 0.38; 'subject:skip:p 10': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'url:org': 0.38; 'software': 0.38; 'received:209': 0.39; 'header:Received:5': 0.40; '2011': 0.62; '26,': 0.68; 'machine,': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=pyAtZmMpmeucPNzhNHkN3LscVRimDmYTd/jVW6LL45Q=; b=poIMRVR4lPFjpwDJLBXu8N3QpZc9Nust6mYWSCsL5ZIiF1zyxptnkccj7qod/S/Sju HK4SflB24N8KJlxPOQbUXZ7d4+44KdkgSNQp1sS7LRsmtoki7SDLKych0ss7xwl4Tvua bHmZMBpqiEuKDkRGixhhXEf0XTpSVQ0L+Rubk=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ok/Wq1KMk7tDIlBcqw3vkG+0PQC74Xs0hiCi8j62++nOuGF/RfdhRah4/cIy3jGfCv 6kc9Q9KBdCCgG7nSZjvVpt1YPRhfNYrPFFS4Q+igE93ro1YEQNimoAFM1QMYvRk3QPRF PlIEg72wccVIPG/eTqRM2VZKVj8YKejz1FufE=
MIME-Version 1.0
In-Reply-To <BANLkTim59q2UEZ6vsEJ7mLSKuVg5cZqh9Q@mail.gmail.com>
References <8ikj88-bs1.ln1@svn.schaathun.net> <BANLkTim59q2UEZ6vsEJ7mLSKuVg5cZqh9Q@mail.gmail.com>
Date Tue, 26 Apr 2011 13:33:25 -0700
Subject Re: client-server parallellised number crunching
From Dan Stromberg <drsalists@gmail.com>
To Chris Angelico <rosuav@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.874.1303850008.9059.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 82.94.164.166
X-Trace 1303850008 news.xs4all.nl 81479 [::ffff:82.94.164.166]:45269
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:4083

Show key headers only | View raw


On Tue, Apr 26, 2011 at 1:20 PM, Chris Angelico <rosuav@gmail.com> wrote:

> But question: Why are you doing major number crunching in Python? On
> your quad-core machine, recode in C and see if you can do the whole
> job without bothering the unreliable boxen at all.

Hmm, or try Cython or PyPy.  ^_^

Here's that graph again:
http://stromberg.dnsalias.org/~dstromberg/backshift/performance/

I'd suggest that rewriting an entire software system in C because of
one inner loop, is overkill.  'better to rewrite just the inner loop
(if needed after profiling), and leave the rest in Python.

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


Thread

client-server parallellised number crunching Hans Georg Schaathun <georg@schaathun.net> - 2011-04-26 20:55 +0100
  Re: client-server parallellised number crunching Chris Angelico <rosuav@gmail.com> - 2011-04-27 06:20 +1000
  Re: client-server parallellised number crunching Dan Stromberg <drsalists@gmail.com> - 2011-04-26 13:31 -0700
  Re: client-server parallellised number crunching Dan Stromberg <drsalists@gmail.com> - 2011-04-26 13:33 -0700
    Re: client-server parallellised number crunching Hans Georg Schaathun <hg@schaathun.net> - 2011-04-26 21:47 +0100
      Re: client-server parallellised number crunching Chris Angelico <rosuav@gmail.com> - 2011-04-27 07:07 +1000
  Re: client-server parallellised number crunching Chris Angelico <rosuav@gmail.com> - 2011-04-27 06:35 +1000
  Re: client-server parallellised number crunching geremy condra <debatem1@gmail.com> - 2011-04-26 14:31 -0700
    Re: client-server parallellised number crunching Hans Georg Schaathun <georg@schaathun.net> - 2011-04-27 06:58 +0100
      Re: client-server parallellised number crunching geremy condra <debatem1@gmail.com> - 2011-04-26 23:54 -0700
        Re: client-server parallellised number crunching Hans Georg Schaathun <georg@schaathun.net> - 2011-04-27 10:57 +0100
  Re: client-server parallellised number crunching Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-04-27 11:35 +0200
    Re: client-server parallellised number crunching Hans Georg Schaathun <hg@schaathun.net> - 2011-04-27 13:21 +0100
      Re: client-server parallellised number crunching Chris Angelico <rosuav@gmail.com> - 2011-04-27 23:35 +1000
        Re: client-server parallellised number crunching Hans Georg Schaathun <hg@schaathun.net> - 2011-04-27 15:15 +0100
          Re: client-server parallellised number crunching Chris Angelico <rosuav@gmail.com> - 2011-04-28 00:58 +1000
            Re: client-server parallellised number crunching Hans Georg Schaathun <hg@schaathun.net> - 2011-04-27 19:28 +0100

csiph-web