Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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; 'cache': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'bug': 0.10; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:search': 0.16; 'wrote:': 0.17; 'feb': 0.19; '+0200': 0.20; 'fraction': 0.22; 'url:bugs': 0.24; 'header:User-Agent:1': 0.26; 'compiled': 0.27; 'regular': 0.27; 'fixed': 0.28; 'header:X -Complaints-To:1': 0.28; 'subject:/': 0.28; 'this.': 0.29; "we're": 0.30; 'fri,': 0.30; 'url:python': 0.32; 'to:addr:python- list': 0.33; "can't": 0.34; 'needed': 0.35; 'problem,': 0.35; 'there': 0.35; 'received:org': 0.36; 'url:org': 0.36; 'charset:us- ascii': 0.36; 'execute': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'here': 0.65; '2013': 0.84; 'received:sd.cox.net': 0.84; 'subject:via': 0.84 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: python-list@python.org To: python-list@python.org From: rh Subject: Re: Curious to see alternate approach on a search/replace via regex Date: Tue, 26 Feb 2013 11:20:28 -0800 References: <511319c7$0$21812$c3e8da3$76491128@news.astraweb.com> <51142e96$0$6512$c3e8da3$5496439d@news.astraweb.com> <51143feb$0$29974$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: ip68-227-87-145.sb.sd.cox.net User-Agent: dsodnetnin X-Mailer: EZnn0.37p X-Newsreader: EZnn0.37p X-Gmane-NNTP-Posting-Host: EZnn0.37p Original-Received: from slem by 1.1 with local X-No-Archive: yes Archive: no X-Archive: expiry=11 X-Archive: encrypt X-Operating-System: Barebones_6.1 X-Gmane-NNTP-Posting-Host: 192.168.1.1 X-NNTP-Posting-Host: 192.168.1.1 Mail-Copies-To: never 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361906409 news.xs4all.nl 6935 [2001:888:2000:d::a6]:58544 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39995 On Fri, 15 Feb 2013 22:58:30 +0200 Serhiy Storchaka wrote: > On 08.02.13 03:08, Ian Kelly wrote: > > I think what we're seeing here is that > > the time needed to look up the compiled regular expression in the > > cache is a significant fraction of the time needed to actually > > execute it. > > There is a bug issue for this. See http://bugs.python.org/issue16389 . > I can't tell what is the problem, is it fixed or still in progress?