Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!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.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'string': 0.09; 'ascii': 0.09; 'collier': 0.09; 'missed': 0.12; 'module?': 0.16; 'reason.': 0.16; '\xe9crit': 0.16; 'wrote:': 0.18; 'module': 0.19; 'user.': 0.19; 'meant': 0.20; 'this?': 0.23; 'header:User-Agent:1': 0.23; 'module,': 0.24; 'source': 0.25; 'script': 0.25; 'compare': 0.26; '----------': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'am,': 0.29; 'scale': 0.29; 'to:no real name:2**1': 0.29; 'code': 0.31; 'received:10.0.0': 0.31; 'anyone': 0.31; 'could': 0.34; 'johnson': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'received:10.0': 0.36; 'too': 0.37; 'list': 0.37; 'received:10': 0.37; 'performance': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'mailing': 0.39; 'results.': 0.60; 'new': 0.61; 'email addr:gmail.com': 0.63; 'to:addr:gmail.com': 0.65; 'optimized': 0.68; 'viewed': 0.74; 'saw': 0.77; '2013': 0.98 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:references :in-reply-to:content-type:content-transfer-encoding; bh=HgvMwjZwVDAwVXqJZfWJOYXjxXST3AUt3F2VefXuBXo=; b=bNE83N8V36Cenu9XX9P9jFx8+WXIrrqQPZwnMYUStZplJjFCDwLyD/LgCMpbh5yBsf AhTK2FZ2jWG/8dI7WhqHTKEFnULjv1MsQkS1NxPiiffLO8Hv6PR2/Eoy5BIcMBUKuTVo /DEZKs2GbsaUaozvCzH+xCMU11v27G240AzQRNy3F4R6dqdgqMtMLwl6bb8obL8K94w0 rtZkcqPel40XQsCNFQgSly+jdHe2X4iC/1lRPGfIBEqFrwq85R6XDVoOr/YhusZsg9pr SrXOAEMuWum2bp+LBplYkWArJae9n6Bhf0Mm1Skn3HBRLSEkJ/LJV6Z8+b7BiuhO9AvM NCRA== X-Received: by 10.236.125.97 with SMTP id y61mr1014456yhh.160.1373625960380; Fri, 12 Jul 2013 03:46:00 -0700 (PDT) Date: Fri, 12 Jul 2013 06:45:57 -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: wxjmfauth@gmail.com, python-list@python.org Subject: Re: RE Module Performance References: <571a6dfe-fd66-42cf-92fc-8b97cbe6e9e4@googlegroups.com> In-Reply-To: <571a6dfe-fd66-42cf-92fc-8b97cbe6e9e4@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 12 Jul 2013 17:45:03 +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: 47 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1373643904 news.xs4all.nl 15926 [2001:888:2000:d::a6]:41381 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50533 Could you explain what you mean? What and where is the new Flexible String Representation? Devyn Collier Johnson On 07/12/2013 05:23 AM, wxjmfauth@gmail.com wrote: > Le vendredi 12 juillet 2013 01:44:05 UTC+2, Devyn Collier Johnson a écrit : >> 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 > ---------- > > I would not care too much about the performance > of re. > > With the new Flexible String Representation, you > can use a logarithmic scale to compare re results. > To be honest, there is improvment if you are an > ascii user. > > Am I the only one who tested this? Probably. > > jmf > >