Path: csiph.com!usenet.pasdenom.info!news.albasani.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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'cpython': 0.05; 'python': 0.09; 'indicates': 0.09; 'terry': 0.09; 'will,': 0.09; 'subject:python': 0.11; 'extension': 0.13; '>on': 0.16; 'formats.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'knock': 0.16; 'plus,': 0.16; 'presume': 0.16; 'reedy': 0.16; 'subject:3.3': 0.16; 'subject:String': 0.16; 'string': 0.17; 'wrote:': 0.17; 'certainly': 0.17; 'thu,': 0.17; 'discussion': 0.20; 'bit': 0.21; "i've": 0.23; 'header:In-Reply- To:1': 0.25; 'developers': 0.26; 'message-id:@mail.gmail.com': 0.27; 'chris': 0.28; 'trouble': 0.28; "i'm": 0.29; 'expect': 0.31; 'switch': 0.32; 'doubt': 0.33; 'to:addr:python-list': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'list': 0.35; 'especially': 0.35; 'open': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'anything': 0.36; 'too': 0.36; 'problems': 0.36; 'busy': 0.37; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'talk': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'real': 0.61; 'personally': 0.61; 'interest': 0.62; 'worth': 0.63; 'times': 0.63; 'more': 0.63; 'learned': 0.65; 'matter.': 0.65; '2013': 0.84; 'complexity': 0.84; 'cost,': 0.84; 'improvement': 0.84; "it'd": 0.84; 'python-dev': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=sFxWjmZ1CvEFVWFhboQ150Q0gjjrKAMshfeH0Ep4Iho=; b=gnls6z4L5BhsokHoAjLAHhLfw2oF/ZOdx49e3CzFrn76mtH17y7+4WyKrfottftnJ1 kX/cxtmaVIvIvQL/6YHrfWjZCxsN969gpw8o4SCesBmrUKL2qTE8mK+gpSbrKWOGfMBu vQY3qJ0dQeH8X+6Y22Co/YSDIQeHUzS+p/gz8lkD9T39bMffJQI5bXFHOZL8X2uEas4W LM6Z/qrN7Af2MLLpKgsWKHsaRwq6X4pje4tFdotvx+YiQ7Oi62Wbipo+lgeH7D6McIQ4 cTrT4iBeQ/ILmMe7h1OJV81QuXzf5oVSjQ01ipGSdxo/QlXFOWsibJa53Bz+uEFJIyp6 NpeQ== MIME-Version: 1.0 X-Received: by 10.52.37.109 with SMTP id x13mr515269vdj.10.1363242060955; Wed, 13 Mar 2013 23:21:00 -0700 (PDT) In-Reply-To: References: <23a42297-9262-4ace-87ad-138999b1ddd6@z3g2000vbg.googlegroups.com> Date: Thu, 14 Mar 2013 17:21:00 +1100 Subject: Re: String performance regression from python 3.2 to 3.3 From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363242063 news.xs4all.nl 6844 [2001:888:2000:d::a6]:52620 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41211 On Thu, Mar 14, 2013 at 1:35 PM, Terry Reedy wrote: >On 3/13/2013 7:43 PM, Chris Angelico wrote: >> It's complexity cost, though, and people would need to know when it >> would be worth giving Python that switch to change its string format. >> Plus, every C extension would need to cope with both formats. I >> personally doubt it'd be worth it, but if you want to knock together a >> patched CPython and get some timing stats, I'm sure this list or >> python-dev will be happy to discuss the matter. :) > > > I presume the smiley indicates that you know that python developers are too > busy with real problems to have any interest in bogus solutions to bogus > problems. It indicates more that the list(s) would almost certainly open up with quite a bit of discussion - especially this one. It's not hard to get talk happening, as evidenced by the number of times we've already discussed this very topic. Frankly, I doubt there'll be anything to discuss - that the patched version will be consistently worse; but if I've learned one thing about timings, it's that there are surprises *everywhere*, so I'm not prepared to state categorically that it *cannot* be better. (I will, however, state that I do not expect any such improvement to be worth the trouble of writing it.) ChrisA