Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python': 0.09; 'delimited': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sep': 0.09; 'sat,': 0.15; '25%': 0.16; 'devs': 0.16; 'happily': 0.16; 'lazily': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'string': 0.17; 'wrote:': 0.17; 'memory': 0.18; "we'd": 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; 'chris': 0.28; 'from:addr:yahoo.co.uk': 0.32; 'surely': 0.33; 'to:addr:python- list': 0.33; 'pm,': 0.35; 'received:org': 0.36; 'but': 0.36; "i'll": 0.36; 'should': 0.36; 'subject: (': 0.36; 'subject:: ': 0.38; 'mark': 0.38; 'instead': 0.39; 'performance': 0.39; 'to:addr:python.org': 0.39; 'subject:-': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'skip:u 10': 0.60; 'subject:, ': 0.61; "you'll": 0.62; 'back': 0.62; 'more': 0.63; 'us,': 0.74; '50%': 0.81; 'subject:write': 0.84; 'careful': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: write a regex matches 800-555-1212, 555-1212, and also (800) 555-1212. Date: Sat, 29 Sep 2012 11:50:04 +0100 References: <5066506D.4020702@tim.thechases.com> <50665A23.1060300@tim.thechases.com> <50666b49$0$29981$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-24-209-106.ppp.as43234.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: X-Antivirus: avast! (VPS 120928-1, 28/09/2012), Outbound message X-Antivirus-Status: Clean 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348915614 news.xs4all.nl 6856 [2001:888:2000:d::a6]:57360 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30474 On 29/09/2012 11:05, Chris Angelico wrote: > On Sat, Sep 29, 2012 at 7:38 PM, Mark Lawrence wrote: >> >> My understanding is that Python 3.3 has regressed the performance of ''. >> Surely the Python devs can speed the performance back up and, just for us, >> use less memory at the same time? > > Yes, but to do that we'd have to make Python more Australia-focused > instead of US-centric. As of Python 3.4, the empty string will be > lazily evaluated and be delimited by redback spiders instead of > quotes. That will give a 25% speed and 50% memory usage improvement, > but you'll need to be careful you don't get bitten. > > ChrisA > I'll happily admit that I don't like the way this is going. Do you (plural) think we should take this across to python ideas? -- Cheers. Mark Lawrence.