Path: csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'tests.': 0.07; 'bytes.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'runs': 0.10; 'python': 0.11; 'jan': 0.12; '2.7': 0.14; 'build?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'tests': 0.22; 'header:User-Agent:1': 0.23; 'comparing': 0.24; 'passes': 0.24; 'unicode': 0.24; 'fairly': 0.24; 'versions': 0.24; 'possibly': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'characters': 0.30; 'especially': 0.30; '3.2': 0.31; "d'aprano": 0.31; 'so-called': 0.31; 'steven': 0.31; 'compatible': 0.32; 'run': 0.32; 'etc': 0.35; 'operations': 0.35; 'but': 0.35; 'there': 0.35; 'version': 0.36; 'i.e.': 0.36; 'doing': 0.36; 'should': 0.36; 'whatever': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'changed': 0.39; 'received:org': 0.40; 'release': 0.40; 'even': 0.60; 'skip:u 10': 0.60; 'subject:"': 0.60; 'tell': 0.60; 'received:173': 0.61; 'making': 0.63; 'information': 0.63; 'real': 0.63; 'more': 0.64; 'default': 0.69; '2.7.': 0.84; 'measurable': 0.84; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Blog "about python 3" Date: Fri, 03 Jan 2014 04:01:18 -0500 References: <52c1dc4c$0$2877$c3e8da3$76491128@news.astraweb.com> <52C1F5EC.3020808@stoneleaf.us> <52c29416$0$29987$c3e8da3$5496439d@news.astraweb.com> <52c6415c$0$29972$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-254-207.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <52c6415c$0$29972$c3e8da3$5496439d@news.astraweb.com> 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1388739699 news.xs4all.nl 2919 [2001:888:2000:d::a6]:37799 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:63043 On 1/2/2014 11:49 PM, Steven D'Aprano wrote: > Robin Becker wrote: > >> For fairly sensible reasons we changed the internal default to use unicode >> rather than bytes. After doing all that and making the tests compatible >> etc etc I have a version which runs in both and passes all its tests. >> However, for whatever reason the python 3.3 version runs slower > > "For whatever reason" is right, unfortunately there's no real way to tell > from the limited information you give what that might be. > > Are you comparing a 2.7 "wide" or "narrow" build? Do your tests use any > so-called "astral characters" (characters in the Supplementary Multilingual > Planes, i.e. characters with ord() > 0xFFFF)? > > If I remember correctly, some early alpha(?) versions of Python 3.3 > consistently ran Unicode operations a small but measurable amount slower > than 3.2 or 2.7. That especially effected Windows. But I understand that > this was sped up in the release version of 3.3. There was more speedup in 3.3.2 and possibly even more in 3.3.3, so OP should run the latter. -- Terry Jan Reedy