Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'utf-8': 0.07; 'ascii': 0.09; 'bytes,': 0.09; 'collier': 0.09; 'extends': 0.09; 'strings.': 0.09; 'unified': 0.09; 'url:software': 0.09; 'thread': 0.14; '"to': 0.16; '8-bit': 0.16; 'byte,': 0.16; 'encodings': 0.16; 'rather,': 0.16; 'unicode.': 0.16; 'url:gnu': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'header:User-Agent:1': 0.23; 'bytes': 0.24; 'example.': 0.24; 'unicode': 0.24; 'defined': 0.27; 'header :In-Reply-To:1': 0.27; '[1]': 0.29; 'am,': 0.29; 'character': 0.29; 'characters': 0.30; 'received:10.0.0': 0.31; 'text': 0.33; 'raw': 0.33; 'something': 0.35; 'editor': 0.35; 'johnson': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'representing': 0.36; 'sequence': 0.36; 'received:10.0': 0.36; 'url:org': 0.36; 'example,': 0.37; 'received:10': 0.37; 'represent': 0.38; 'to:addr :python-list': 0.38; 'short': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'changed': 0.39; 'called': 0.40; 'numbers': 0.61; 'simply': 0.61; 'first': 0.61; 'email addr:gmail.com': 0.63; 'forward': 0.65; 'within': 0.65; 'birthday': 0.84; 'characters,': 0.84; 'lived': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=VQjyAS3AhPopB9BZMoKqjGAwjNAXH6qtDh7/Uz0sO18=; b=QPMUApUsxQDJz7EXFof87i0fc9T1vBtm0kwnxwDHzrqRd4u3e5/3IM64v+NM94n929 SR2/t3Op2B5WcwK3VmtPsOJVdQfvkGpGY/JMfaCLmlQtr8fX+PgfFVfsz/LO+tZn77nq K1nm08OYGWgx1lIuJR1+pyZpi/v5gPP9BJEQm4NQEbYBt0Cgh/95Q65y6P/Reeo3w2GG ikwQSeiZ9fQwq67JWEAyFZuyTOuIVoK3gJ9tmuil+B8xE5x99zrQ1ug2eqBxFP3Pn8il KDgTt4cTZEVMyb88QrKQYAoDQJgLazhgRYQl3DEFysQ/jI29jSmpIHDAjXxjKBqcTtq8 uLBw== X-Received: by 10.42.123.139 with SMTP id s11mr19834030icr.82.1374759880999; Thu, 25 Jul 2013 06:44:40 -0700 (PDT) Date: Thu, 25 Jul 2013 09:44:38 -0400 From: Devyn Collier Johnson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Python Mailing List Subject: Re: RE Module Performance References: <571a6dfe-fd66-42cf-92fc-8b97cbe6e9e4@googlegroups.com> <51DFDE65.5040001@Gmail.com> <4f1067f6-bc99-42ad-9166-37fb228b90e8@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374759884 news.xs4all.nl 15942 [2001:888:2000:d::a6]:47679 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51220 On 07/25/2013 09:36 AM, Jeremy Sanders wrote: > wxjmfauth@gmail.com wrote: > >> Short example. Writing an editor with something like the >> FSR is simply impossible (properly). > http://www.gnu.org/software/emacs/manual/html_node/elisp/Text-Representations.html#Text-Representations > > "To conserve memory, Emacs does not hold fixed-length 22-bit numbers that are > codepoints of text characters within buffers and strings. Rather, Emacs uses a > variable-length internal representation of characters, that stores each > character as a sequence of 1 to 5 8-bit bytes, depending on the magnitude of > its codepoint[1]. For example, any ASCII character takes up only 1 byte, a > Latin-1 character takes up 2 bytes, etc. We call this representation of text > multibyte. > > ... > > [1] This internal representation is based on one of the encodings defined by > the Unicode Standard, called UTF-8, for representing any Unicode codepoint, but > Emacs extends UTF-8 to represent the additional codepoints it uses for raw 8- > bit bytes and characters not unified with Unicode. > > " > > Jeremy > > Wow! The thread that I started has changed a lot and lived a long time. I look forward to its first birthday (^u^). Devyn Collier Johnson