Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.081 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.00; 'collier': 0.09; 'missed': 0.12; 'module?': 0.16; 'reason.': 0.16; 'module': 0.19; 'meant': 0.20; 'header:User-Agent:1': 0.23; 'module,': 0.24; 'source': 0.25; 'script': 0.25; 'least': 0.26; 'code': 0.31; 'received:10.0.0': 0.31; 'anyone': 0.31; 'johnson': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'received:10.0': 0.36; 'list': 0.37; 'received:10': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'mailing': 0.39; 'email addr:gmail.com': 0.63; 'optimized': 0.68; 'viewed': 0.74; 'saw': 0.77 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=ZFnBp+o3x6Pm8POvL4+A+RgDUyHbYTVBcjcPbivj0GM=; b=EcVE1R6MYgu3zMpdBxyQAR5TfqGWaWrNO2bCulGhTtcSWS6W/Dy83+xJmxfY3OffWr blzaar2i65kAByCFp86W380PZksUjX664YBSH9RPN2HLqy5XCKvRY1axGnc9lMgdkK9K hr/tKD+RVsvsc0hwmowg0ZdIli0AXJWA30SfYvSkDfWdN6sett/65W/qEppfnneBJfrK kbWxesnclFdTx8qt73J141qyRx1qSbPeQUem936WmEUDnb+q/CJa+V39t9Q56tnMfNjv Rr1TYDHx7j30WiVT7lpnkY44BGu/b3aGvEssost7EE8LUQJIHilLQSP5PpATPs3bWys1 Q/Sw== X-Received: by 10.236.70.9 with SMTP id o9mr11545yhd.35.1373586248819; Thu, 11 Jul 2013 16:44:08 -0700 (PDT) Date: Thu, 11 Jul 2013 19:44:05 -0400 From: Devyn Collier Johnson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: python-list@python.org Subject: RE Module Performance Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 12 Jul 2013 09:23:52 +0200 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373613834 news.xs4all.nl 15890 [2001:888:2000:d::a6]:52083 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50503 I recently saw an email in this mailing list about the RE module being made slower. I no long have that email. However, I have viewed the source for the RE module, but I did not see any code that would slow down the script for no valid reason. Can anyone explain what that user meant or if I missed that part of the module? Can the RE module be optimized in any way or at least the "re.sub" portion? Mahalo, Devyn Collier Johnson DevynCJohnson@Gmail.com