Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'mrab': 0.05; 'say,': 0.05; 'string': 0.09; 'ascii': 0.09; 'insertion': 0.09; 'typed': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '18:13,': 0.16; 'buffer.': 0.16; 'implies': 0.16; 'types,': 0.16; 'language': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'char': 0.24; 'sorry,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'characters': 0.30; 'waste': 0.30; 'message-id:@mail.gmail.com': 0.30; '>>>>': 0.31; 'says': 0.33; 'editor': 0.35; 'received:google.com': 0.35; 'does': 0.39; 'bad': 0.39; "couldn't": 0.39; 'sure': 0.39; 'new': 0.61; 'simple': 0.61; 'email addr:gmail.com': 0.63; 'show': 0.63; 'soon': 0.63; 'july': 0.63; 'characters,': 0.84; 'gap': 0.84; 'pardon': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=B/O2YlsVlkDyZxgxplGpqjyK1dHQ0dtq37eCZCkMOuA=; b=vutC1RfmEVeaTz4M4bEJqsp4urnmFmHi3T9zo4WbTK2xHjnUAR3p2LTQ+BZuEuWTcq M/Sql2opsPXjPGALXHcYwom31FNvYUeZZYJqhITdyJFc6qQK4dIkRPfwUI2Y0IrAU1xJ n3asZiE2s9v68CVyQtXh/mmdSL3ghoNWtCGfKOIQxFTuX5an9+FEMrenyMbZUiCTguIM K+/g3JbJiDvZ9cFZ1NE9nRubuyGd3cHd+AQZZGQpwnWzkWW2yKkv615vFsDRwnsRQgWW B0Z+E4VOLopAeTp/ZN06yvdsYoEy1QEVCmIMGqjqwshdJorFBzX9k6Kgv/we2YarzUag f2wA== X-Received: by 10.112.60.129 with SMTP id h1mr4576833lbr.12.1375206057067; Tue, 30 Jul 2013 10:40:57 -0700 (PDT) MIME-Version: 1.0 Sender: joshua.landau.ws@gmail.com In-Reply-To: <51F7EC41.5010704@rece.vub.ac.be> References: <571a6dfe-fd66-42cf-92fc-8b97cbe6e9e4@googlegroups.com> <51DFDE65.5040001@Gmail.com> <4f1067f6-bc99-42ad-9166-37fb228b90e8@googlegroups.com> <51f14395$0$29971$c3e8da3$5496439d@news.astraweb.com> <51f15e03$0$29971$c3e8da3$5496439d@news.astraweb.com> <8203e802-9dc5-44c5-9547-6e1947ee224b@googlegroups.com> <43ce1b65-9d6d-47dd-b209-9a3bbafc0b8c@googlegroups.com> <51F7CFD1.1090403@rece.vub.ac.be> <51F7E634.2030200@mrabarnett.plus.com> <51F7EC41.5010704@rece.vub.ac.be> From: Joshua Landau Date: Tue, 30 Jul 2013 18:40:17 +0100 X-Google-Sender-Auth: Ia0rJZLN1DKKrEIHNta55X0B5jc Subject: Re: RE Module Performance To: Antoon Pardon Content-Type: multipart/alternative; boundary=e89a8f9219c2864f4d04e2be1c42 Cc: python-list 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: 82 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375206059 news.xs4all.nl 15936 [2001:888:2000:d::a6]:58113 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51588 --e89a8f9219c2864f4d04e2be1c42 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 30 July 2013 17:39, Antoon Pardon wrote: > Op 30-07-13 18:13, MRAB schreef: > > On 30/07/2013 15:38, Antoon Pardon wrote: >> >>> Op 30-07-13 16:01, wxjmfauth@gmail.com schreef: >>> >>>> >>>> I am pretty sure that once you have typed your 127504 ascii >>>> characters, you are very happy the buffer of your editor does not >>>> waste time in reencoding the buffer as soon as you enter an =E2=82=AC,= the >>>> 125505th char. Sorry, I wanted to say z instead of euro, just to >>>> show that backspacing the last char and reentering a new char >>>> implies twice a reencoding. >>>> >>> >>> Using a single string as an editor buffer is a bad idea in python for >>> the simple reason that strings are immutable. >>> >> >> Using a single string as an editor buffer is a bad idea in _any_ >> language because an insertion would require all the following >> characters to be moved. >> > > Not if you use a gap buffer. Additionally, who says a language couldn't use, say, B-Trees for all of its list-like types, including strings? --e89a8f9219c2864f4d04e2be1c42 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On 30 July 2013 17:39, Antoon Pardon <= ;antoon.p= ardon@rece.vub.ac.be> wrote:
Op 30-07-13 18:13, MRAB schreef:

On 30/07/2013 15:38, Antoon Pardon wrote:
Op 30-07-13 16:01, wxjmfauth@gmail.com schreef:

I am pretty sure that once you have typed your 127504 ascii
characters, you are very happy the buffer of your editor does not
waste time in reencoding the buffer as soon as you enter an =E2=82=AC, the<= br> 125505th char. Sorry, I wanted to say z instead of euro, just to
show that backspacing the last char and reentering a new char
implies twice a reencoding.

Using a single string as an editor buffer is a bad idea in python for
the simple reason that strings are immutable.

Using a single string as an editor buffer is a bad idea in _any_
language because an insertion would require all the following
characters to be moved.

Not if you use a gap buffer.

Additionally, = who says a language couldn't use, say, B-Trees for all of its list-like= types, including strings?=C2=A0
--e89a8f9219c2864f4d04e2be1c42--