Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'bug.': 0.09; 'imho.': 0.09; 'subject:Why': 0.09; 'yeah,': 0.09; 'bug': 0.12; 'assume': 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'roy': 0.16; 'subject:slow': 0.16; 'tempted': 0.16; 'unicode.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'module': 0.19; '2.x': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '(which': 0.31; '3.x': 0.31; 'another': 0.32; 'open': 0.33; 'entirely': 0.33; "i'd": 0.34; 'received:google.com': 0.35; 'possible': 0.36; 'subject:?': 0.36; 'performance': 0.37; 'being': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'different': 0.65; 'account': 0.65; 'smith': 0.68; '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=vmsE/lAq2xHsOehwnQa6TLSF96m9b8/CCapPIDo1/Eg=; b=l/yPT4JpXqqGXIYfHD6cgGO+x3UJkFzKmO7kbcAqltim356aP3ALMrVhYEgA67ku2p DK4+VLhasFLUlDDSyNMtkgqn1InPm2NtN4TF9kwQhEPVVbBJBeFkUD56aBvSMoY08w3M 9v8Syv9uA0ywxz8MZX9ggwlcNpZ2wCDwJf5rVOQCDNORXipupjv3EaezswK41yK7XVCS 31YgJN0sOEP1ko6BpjNIav8hW9ZKqTuW4ZBF7ex9992znUUY5EJkWHCD60AMb0JD+u1E d1BDO0Nc3rbnJBcfvNKqi6q6TIv+0XdCoK/ifz36cb7fFV4wjbpwpkIeOurrqGhbwOhO L+1g== MIME-Version: 1.0 X-Received: by 10.52.163.165 with SMTP id yj5mr1842018vdb.104.1371576057758; Tue, 18 Jun 2013 10:20:57 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Jun 2013 03:20:57 +1000 Subject: Re: Why is regex so slow? 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371576060 news.xs4all.nl 15886 [2001:888:2000:d::a6]:35181 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48645 On Wed, Jun 19, 2013 at 3:08 AM, Roy Smith wrote: > I'm tempted to open this up as a performance bug against the regex module (which I assume will be rejected, at least for the 2.x series). Yeah, I'd try that against 3.3 before opening a performance bug. Also, it's entirely possible that performance is majorly different in 3.x anyway, on account of strings being Unicode. Definitely merits another look imho. ChrisA