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


Groups > comp.lang.python > #6901

Re: Why is this so much faster?

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <keirrice@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.095
X-Spam-Evidence '*H*': 0.81; '*S*': 0.00; 'tim,': 0.09; 'lambda': 0.16; 'message-id:@glegroupsg2000goo.googlegroups.com': 0.16; 'reply-to:addr:comp.lang.python': 0.16; 'terry,': 0.16; 'to:addr:comp.lang.python': 0.16; 'url:effbot': 0.16; 'url:zone': 0.16; 'x64': 0.16; 'cc:addr:python-list': 0.17; 'header:In-Reply- To:1': 0.21; 'cc:no real name:2**0': 0.23; 'replacing': 0.23; 'responses.': 0.23; 'code': 0.24; 'function': 0.25; 'parameters': 0.26; 'thanks': 0.28; 'effect': 0.29; 'subject:?': 0.29; 'received:209.85.160': 0.29; 'cc:addr:python.org': 0.30; 'cc:addr:gmail.com': 0.30; 'post': 0.33; 'header:User-Agent:1': 0.35; 'fixing': 0.35; 'cc:2**1': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.37; 'comparing': 0.37; 'url:org': 0.38; 'subject:: ': 0.38; 'received:209': 0.39; 'order': 0.62; 'to:addr:googlegroups.com': 0.63; 'url:htm': 0.71; 'header:Reply- To:1': 0.72; 'reply-to:no real name:2**0': 0.72; 'reply- to:addr:googlegroups.com': 0.73; 'subject:this': 0.76; 'fredrik': 0.84; 'ian,': 0.84; 'subject:Why': 0.84; 'subject:much': 0.93
Newsgroups comp.lang.python
Date Thu, 2 Jun 2011 18:28:28 -0700 (PDT)
In-Reply-To <mailman.2410.1307058647.9059.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=202.20.0.29; posting-account=AKSfYQoAAACwn4TRj6PPDsUJJcE8GixP
User-Agent G2/1.0
X-Google-Web-Client true
MIME-Version 1.0
Subject Re: Why is this so much faster?
From Keir Rice <keirrice@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc Python <python-list@python.org>, keirrice@gmail.com
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To comp.lang.python@googlegroups.com
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>
Message-ID <mailman.2411.1307064518.9059.python-list@python.org> (permalink)
Lines 9
NNTP-Posting-Host 82.94.164.166
X-Trace 1307064518 news.xs4all.nl 49177 [::ffff:82.94.164.166]:57801
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:6901

Show key headers only | View raw


Thanks for the fast responses.

Tim, you're right I did have my lambda parameters the wrong way round.
Fixing up the order had no effect on the speed (platform is x64 win7).

Ian, I was basing my code off Fredrik Lundh post on comparing images.
http://effbot.org/zone/pil-comparing-images.htm

Terry, I will try replacing the pow function next.

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


Thread

Re: Why is this so much faster? Keir Rice <keirrice@gmail.com> - 2011-06-02 18:28 -0700

csiph-web