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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'received:134': 0.05; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; './python': 0.16; '2.7:': 0.16; '3.2.': 0.16; 'nonetheless': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.17; 'preferred': 0.20; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'skip:" 20': 0.26; 'header:X-Complaints-To:1': 0.28; 'character': 0.29; 'to:addr:python-list': 0.33; 'faster': 0.35; 'received:org': 0.36; 'but': 0.36; 'characters': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'little': 0.39; 'header:Received:5': 0.40; 'euro': 0.69; 'latin': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Serhiy Storchaka Subject: Re: Article on the future of Python Date: Thu, 27 Sep 2012 20:17:31 +0300 References: <5062ad83$0$29997$c3e8da3$5496439d@news.astraweb.com> <693ac61b-b1d3-4192-9e50-5166fd119278@googlegroups.com> <447851a9-bc63-4711-a4e6-bff565e28f1f@googlegroups.com> <2b2d20f5-2807-4a61-b284-8075e900db22@googlegroups.com> <50641d6d$0$29997$c3e8da3$5496439d@news.astraweb.com> <50642DE0.8030102@mweb.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 134.249.175.185 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 In-Reply-To: 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348766274 news.xs4all.nl 6877 [2001:888:2000:d::a6]:48751 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30313 On 27.09.12 18:06, Ian Kelly wrote: > I understand ISO 8859-15 (Latin-9) to be the preferred Latin character > set for French, as it includes the Euro sign as well as a few > characters that are not in Latin-1 but are nonetheless infrequently > found in French. Even for Latin-9 Python 3.3 can be a little faster 3.2. $ ./python -m timeit -s "s=bytes(range(256))*100" "s.decode('latin1')" Python 2.7: 105 usec Python 3.2: 20.4 usec Python 3.3: 4.98 usec $ ./python -m timeit -s "s=bytes(range(256))*100" "s.decode('latin9')" Python 2.7: 700 usec Python 3.2: 94.6 usec Python 3.3: 93.2 usec