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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'python.': 0.02; 'url:pypi': 0.03; 'mrab': 0.05; 'expressions': 0.07; 'collier': 0.09; 'optimizing': 0.09; 'systems.': 0.12; 'fyi,': 0.16; 'wrote:': 0.18; 'module': 0.19; 'thorough': 0.19; 'version.': 0.19; '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; 'to:name:python-list': 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; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; "you're": 0.61; 'email addr:gmail.com': 0.63; 'july': 0.63; 'love': 0.65; 'taking': 0.65; 'articles': 0.65; 'latest': 0.67; 'response.': 0.68; 'absolutely': 0.87; '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=i9Q+cV+om09UwqBOHoNH0RFS20lPrOQ+f2XDY8Fmyas=; b=wbYRT+pU1/8OHHsA2L1w4GAj6GoxXxNMK/91DqIUhSc+HnyDU/imM2PlnazO7RrHPm xk5ZqrJSorwoyc4oanwtH7HRZhMtD7hPGolu+6uDxsKR4a1lqfjSXV9GKcPuXifE93An ePfL2g10pb1YP+VnruM8DvHJ+Vpync0DW5c/nRk8Dq89+SnY4VyMdrrzNPInNPFFgjRY AwRJUBYWmY9VQEXfpOJufwML+UVM8jjl7D5gcgzkXhEg4Ab0n+HTVwaV1zWhlF2YWBb+ hR+fSIWO/fCDQly+EQi9LLVGB7Wgykku/eWrn/ZgH50yq1AeEjuDiBEBv5UPxBKU7eP1 BIeQ== MIME-Version: 1.0 X-Received: by 10.224.21.74 with SMTP id i10mr30744550qab.29.1373744067667; Sat, 13 Jul 2013 12:34:27 -0700 (PDT) In-Reply-To: <51E08E36.5030108@mrabarnett.plus.com> References: <571a6dfe-fd66-42cf-92fc-8b97cbe6e9e4@googlegroups.com> <51DFDE65.5040001@Gmail.com> <51E043C5.1010804@Gmail.com> <51E08E36.5030108@mrabarnett.plus.com> Date: Sun, 14 Jul 2013 05:34:27 +1000 Subject: Re: RE Module Performance From: Tim Delaney To: Python-List Content-Type: multipart/alternative; boundary=001a11c2e9ee2a6bd704e169b7f6 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: 75 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373744069 news.xs4all.nl 15932 [2001:888:2000:d::a6]:48267 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50613 --001a11c2e9ee2a6bd704e169b7f6 Content-Type: text/plain; charset=UTF-8 On 13 July 2013 09:16, MRAB wrote: > On 12/07/2013 23:16, Tim Delaney wrote: > >> 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-26modules to see if they >> already give you enough of a speedup. >> >> FYI, you're better off going to http://pypi.python.org/pypi/**regex > because that will take you to the latest version. Absolutely - what was I thinking? Tim Delaney --001a11c2e9ee2a6bd704e169b7f6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 13 July 2013 09:16, MRAB <python@mrabarnett.= plus.com> wrote:
On 12/07/2013 23:16, Tim D= elaney wrote:
On 13 July 2013 03:58, Devyn Collier Johnson <devyncjohnson@gmail.com
<mailto:dev= yncjohnson@gmail.com>> wrote:


=C2=A0 =C2=A0 Thanks for the thorough response. I learned a lot. You should= write
=C2=A0 =C2=A0 articles on Python.
=C2=A0 =C2=A0 I plan to spend some time optimizing the re.py module for Uni= x
=C2=A0 =C2=A0 systems. I would love to amp up my programs that use that mod= ule.


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.

FYI, you're better off going to http://pypi.python.org/pypi/regex
because that will take you to the latest version.

Absolutely - what was I thinking?

Tim Delan= ey=C2=A0
--001a11c2e9ee2a6bd704e169b7f6--