Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!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.011 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; 'systems.': 0.12; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'fyi,': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'wrote:': 0.18; 'module': 0.19; 'thorough': 0.19; 'version.': 0.19; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'tim': 0.29; 'unix': 0.29; 'lot.': 0.31; 'regular': 0.32; 'url:python': 0.33; 'johnson': 0.35; 'received:84': 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; 'july': 0.63; 'love': 0.65; 'taking': 0.65; 'articles': 0.65; 'latest': 0.67; 'header:Reply-To:1': 0.67; 'response.': 0.68; 'reply-to:no real name:2**0': 0.71; 'reply-to:addr:python.org': 0.84; '2013': 0.98 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=RZapVTdv c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=K2DDQYBT4xIA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=-vha-_sxYaMA:10 a=pGLkceISAAAA:8 a=uRpQGg3uPDH4SI4V6EAA:9 a=wPNLvfGTeEIA:10 a=MSl-tDqOz04A:10 X-AUTH: mrabarnett:2500 Date: Sat, 13 Jul 2013 00:16:06 +0100 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: python-list@python.org Subject: Re: RE Module Performance References: <571a6dfe-fd66-42cf-92fc-8b97cbe6e9e4@googlegroups.com> <51DFDE65.5040001@Gmail.com> <51E043C5.1010804@Gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373670938 news.xs4all.nl 15877 [2001:888:2000:d::a6]:48902 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50564 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-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.