Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; ';-)': 0.03; 'subject:Python': 0.06; 'indexing': 0.07; 'subject: -- ': 0.07; 'utf-8': 0.07; 'string': 0.09; 'cc:addr:python-list': 0.11; 'thread': 0.14; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'operation,': 0.16; 'operation.': 0.16; 'unexpected': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '(see': 0.26; 'header:In-Reply- To:1': 0.27; "i'm": 0.30; 'breaking': 0.31; 'subject:skip:i 10': 0.31; 'but': 0.35; 'charset:us-ascii': 0.36; 'should': 0.36; 'performance': 0.37; 'talking': 0.65; 'world': 0.66; 'side': 0.67; 'between': 0.67; 'believe': 0.68; 'distinguish': 0.84; 'everything,': 0.84; 'received:50.22': 0.84 Date: Wed, 4 Jun 2014 07:21:23 -0500 From: Tim Chase To: Robin Becker Subject: Re: Micro Python -- a lean and efficient implementation of Python 3 In-Reply-To: <538F08AF.2030107@chamonix.reportlab.co.uk> References: <20140603194949.3147497d@x34f> <44acd692-5dcd-4e5f-8238-7fbe0de4db2a@googlegroups.com> <538ecdef$0$11109$c3e8da3@news.astraweb.com> <7xoay9w1h0.fsf@ruckus.brouhaha.com> <20140604060152.2cdf8198@bigbox.christie.dr> <538F08AF.2030107@chamonix.reportlab.co.uk> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com Cc: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401884522 news.xs4all.nl 2923 [2001:888:2000:d::a6]:36314 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72631 On 2014-06-04 12:53, Robin Becker wrote: > > If you use UTF-8 for everything, then you end up in a world where > > string-indexing (see ChrisA's other side thread on this topic) is > > no longer an O(1) operation, but an O(N) operation. Some of us > > slice strings for a living. ;-) > ........ > I believe that we should distinguish between glyph/character > indexing and string indexing. I'm only talking about string indexing using my_string[some_slice] which is traditionally O(1) and breaking that [cw]ould cause unexpected performance degradation. -tkc