Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'url:pypi': 0.03; 'expressions': 0.07; 'collier': 0.09; 'optimizing': 0.09; 'cc:addr:python-list': 0.11; 'systems.': 0.12; 'wrote:': 0.18; 'module': 0.19; 'thorough': 0.19; 'cc:addr:gmail.com': 0.22; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'header:In-Reply- To:1': 0.27; 'tim': 0.29; 'unix': 0.29; 'message- id:@mail.gmail.com': 0.30; 'lot.': 0.31; 'regular': 0.32; 'url:python': 0.33; 'johnson': 0.35; 'received:google.com': 0.35; 'module.': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'should': 0.36; 'too': 0.37; 'enough': 0.39; 'july': 0.63; 'love': 0.65; 'taking': 0.65; 'articles': 0.65; 'to:addr:gmail.com': 0.65; 'response.': 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 :cc:content-type; bh=k6OKorTFMqdvqxq7/t3UpKlM8gn3afovKlAwyDwVqN4=; b=kI7g2TAw3ET/hUwWtiOHWIf+4Q3oCkiyKnJxu8HiiCO0tiyQO9ANJzYFssWh0q8nq9 PIWbuT96Sr3U03z3pix66vq+yPcBW/NQc2nBYZ+JdMIrAPiEgZP9Xcc8raZ20FGjrJnU qtRKUbqOkCPiJUJVb0CAioGHAbnVpXARQm8kbKzoGI9fdvU5TUUh1QKp5iRvyIAgcg6c rwqCJrGwvAhUrLOIUiaexQoUkfeM7C4ya/6608Joo/nKrof2muN89ufER9EY4RSJXOwT 5lMvt6xsF8Q/lDPAxWiJLvLxs3LlO6WvE5RzB6XqBJJdGxURIgofvMXgc8HT9XL1ENPy DeZQ== MIME-Version: 1.0 X-Received: by 10.60.79.3 with SMTP id f3mr37309515oex.50.1373667365457; Fri, 12 Jul 2013 15:16:05 -0700 (PDT) In-Reply-To: <51E043C5.1010804@Gmail.com> References: <571a6dfe-fd66-42cf-92fc-8b97cbe6e9e4@googlegroups.com> <51DFDE65.5040001@Gmail.com> <51E043C5.1010804@Gmail.com> Date: Sat, 13 Jul 2013 08:16:05 +1000 Subject: Re: RE Module Performance From: Tim Delaney To: Devyn Collier Johnson Content-Type: multipart/alternative; boundary=089e0117795b5b979604e157db2e Cc: Python Mailing List 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: 42 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373667373 news.xs4all.nl 15932 [2001:888:2000:d::a6]:53995 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50558 --089e0117795b5b979604e157db2e Content-Type: text/plain; charset=UTF-8 On 13 July 2013 03:58, Devyn Collier Johnson wrote: > > Thanks for the thorough response. I learned a lot. You should write > articles on Python. > I plan to spend some time optimizing the re.py module for Unix systems. I > would love to amp up my programs that use that module. If you are finding that regular expressions are taking too much time, have a look at the https://pypi.python.org/pypi/re2/ and https://pypi.python.org/pypi/regex/2013-06-26 modules to see if they already give you enough of a speedup. Tim Delaney --089e0117795b5b979604e157db2e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 13 July 2013 03:58, Devyn Collier Johnson <devyn= cjohnson@gmail.com> wrote:

Thanks for the thorough response. I learned a lot. You should write article= s on Python.
I plan to spend some time optimizing the re.py module for Unix systems. I w= ould love to amp up my programs that use that module.

=
If you are finding that regular expressions are taking too much = time, have a look at the=C2=A0https://pypi.python.org/pypi/re2/ and=C2=A0https://pypi.python.org/pypi/regex/2013-06-2= 6 modules to see if they already give you enough of a speedup.

Tim Delaney
--089e0117795b5b979604e157db2e--