Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38309
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <demianbrecht@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.030 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.00; 'tests,': 0.07; 'python': 0.09; 'url:github': 0.09; 'cc:addr:python-list': 0.10; 'subject:search': 0.16; 'wrote:': 0.17; 'produces': 0.22; 'cc:2**0': 0.23; 'split': 0.23; 'url:profile': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'skip:[ 10': 0.26; 'subject:/': 0.28; 'run': 0.28; 'function': 0.30; 'url:python': 0.32; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'message-id:@gmail.com': 0.36; 'url:org': 0.36; 'url:library': 0.36; 'charset:us-ascii': 0.36; 'uses': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'url:docs': 0.38; 'received:10': 0.38; 'skip:" 10': 0.40; 'more': 0.63; '2:30': 0.84; 'subject:via': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:user-agent:date:subject:from:to:cc:message-id :thread-topic:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=fbnCFhMQEUXu3aTCEkETNHTZE+ou2RfPu1q82wjHHgQ=; b=qBllZcXz7KpzYp/uLTOpXljISrqPGkLV6zAdyfMDZZ0mIuK1YVq4hXahduMwhUzYSA /1Iw5mkWc7hT9WG4kSz3KYUUOVpErMo22EQ7xR05T1LiV1An3hEXfvGtB5tl9OcpElrK Ns2urTEfdeI2hPKnOlplWZrpEJDIWghAfvUlJELS6Umd3b9eE+Yp3ncWqf5F/3mC+Gy6 4677zBgzIONh6m5T5aahqlILWIkKcVghcXyEc0ffOeHMW4S1zNzajhDCwvboPhRGnYi5 9Rf93pSYp5z2XxYv66BSs5TJoc7yKpWCe/Xi5O49g2P2+rZAa0wspQcmV9m7AMop3V5+ yPig== |
| X-Received | by 10.66.83.165 with SMTP id r5mr79520316pay.3.1360190014879; Wed, 06 Feb 2013 14:33:34 -0800 (PST) |
| User-Agent | Microsoft-MacOutlook/14.3.0.121105 |
| Date | Wed, 06 Feb 2013 14:33:23 -0800 |
| Subject | Re: Curious to see alternate approach on a search/replace via regex |
| From | Demian Brecht <demianbrecht@gmail.com> |
| To | richard_hubbe11 <richard_hubbe11@lavabit.com> |
| Thread-Topic | Curious to see alternate approach on a search/replace via regex |
| In-Reply-To | <20130206143026.deb87cf33c1243e4b377f430@lavabit.com> |
| Mime-version | 1.0 |
| Content-type | text/plain; charset="US-ASCII" |
| Content-transfer-encoding | 7bit |
| Cc | "python-list@python.org" <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1428.1360190018.2939.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1360190018 news.xs4all.nl 6959 [2001:888:2000:d::a6]:46911 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:38309 |
Show key headers only | View raw
python -m cProfile [script_name].py http://docs.python.org/2/library/profile.html#module-cProfile Demian Brecht http://demianbrecht.github.com On 2013-02-06 2:30 PM, "richard_hubbe11" <richard_hubbe11@lavabit.com> wrote: >I see that urlparse uses split and not re at all and, in my tests, >urlparse >completes in less time. More calls but less time is ok to me. > >How did you run the test? >What produces the function call count?
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Curious to see alternate approach on a search/replace via regex Demian Brecht <demianbrecht@gmail.com> - 2013-02-06 14:33 -0800
csiph-web