Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.024 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.01; 'anyway.': 0.05; '21,': 0.07; 'subject:code': 0.07; 'subject:How': 0.10; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:make': 0.16; 'surprising': 0.16; 'wrote:': 0.18; 'result.': 0.19; 'solution.': 0.20; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'skip:u 10': 0.60; 'worth': 0.66; 'jul': 0.74; 'subject:this': 0.83; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=fHlwwnNsbJ5JHz5ynca/EfuxXTGsD3TZSNqtLMtS9NM=; b=fbsFavyjFFBr+PJQTzr7Mfb5srrk6Lb9u9xZHAWjKLbwKvZrcUjCA6WcTDQJhysTjC 8i916p/ztGW5DcowstjKcZLJkO5cXTVSMQdN97nNRAwFsv8nQKiTZLL7OZ8gLEu4H3fA u7pxEoFXf3liZTGnWVpsAX8Q13iX0My6CAVL290V+varv/5xflMbzrBVhUVrzSMWt2FO EJfGV+yo2HtX13FY6QCfntnomd1/rt0K5Qf02YQOgcyrmCP+Y6UWM6w9vK6LBZ7Me2cA RqgxTDD4SKC42fAjjEaXYJbypG+jZtCAS19GGOoy7azUmdTVO60mya2NvQG6lQgu1AEC txXA== MIME-Version: 1.0 X-Received: by 10.52.120.77 with SMTP id la13mr6341603vdb.23.1374362982305; Sat, 20 Jul 2013 16:29:42 -0700 (PDT) In-Reply-To: References: <6bf4d298-b425-4357-9c1a-192e6e6cd9f0@googlegroups.com> Date: Sun, 21 Jul 2013 09:29:42 +1000 Subject: Re: How can I make this piece of code even faster? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374362990 news.xs4all.nl 15952 [2001:888:2000:d::a6]:36135 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50985 On Sun, Jul 21, 2013 at 9:24 AM, wrote: > Hi there Chris. > Unfortunately, using iterations was about twice as slow as the original implementation, so that's not the solution. > Thank's anyway. Fascinating! Well, was worth a try anyhow. But that's a very surprising result. ChrisA