Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed1.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.145 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.73; '*S*': 0.02; 'assigned,': 0.16; 'bit.': 0.16; 'byte,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'language': 0.16; 'wrote:': 0.18; 'wed,': 0.18; '31,': 0.24; 'header:In-Reply-To:1': 0.27; 'specifically': 0.29; 'am,': 0.29; 'character': 0.29; 'waste': 0.30; 'message- id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'could': 0.34; 'received:google.com': 0.35; 'possible': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'skip:u 10': 0.60; 'save': 0.62; 'cut': 0.74; 'jul': 0.74; 'banned': 0.84; 'better!': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=cVqK98yIyB13MxSe+ch67x8cu00VeoXv+b4X42qYaXI=; b=cqMiXHDQKiq1Ef3GYaE4ZJm8dAZep8zmCFLRzbkO3YpLDEqgfGX1AovKaLa+lcUrzu 1NxBPESej8BHXhrb9tSUo2hCskT8ccvxpPSwGltLSOPGlXM3cNrd/0ajB6+EBYnrna/W jAWBf+6ZSReftgzviJ4feUccZSYAnzuXHyS3tZfDFN5ZFWhIFR8OWJxxi3XbBJb6xWC9 uCVmUVWVP8EyESecupveAPuuKQFoKYw3ZSwPcLafwU5veDE6lDUQkCCaNMEUjinO6i9A jyTHinU9QQNMH2S3kP1X5oQsx3cNxQg9mGMdASC8+Fi82SaIfs/QsfNylMf8M6zTTN77 ISJw== MIME-Version: 1.0 X-Received: by 10.58.187.4 with SMTP id fo4mr28473264vec.55.1375255053942; Wed, 31 Jul 2013 00:17:33 -0700 (PDT) In-Reply-To: <51f8a46e$0$30000$c3e8da3$5496439d@news.astraweb.com> References: <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> <51F7F48F.3070803@mrabarnett.plus.com> <39155ddf-437c-459e-ad7c-dd841810a592@googlegroups.com> <51f8a46e$0$30000$c3e8da3$5496439d@news.astraweb.com> Date: Wed, 31 Jul 2013 08:17:33 +0100 Subject: Re: RE Module Performance From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375255056 news.xs4all.nl 15870 [2001:888:2000:d::a6]:35705 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51627 On Wed, Jul 31, 2013 at 6:45 AM, Steven D'Aprano wrote: > if you care about minimizing every possible byte, you should > use a low-level language like C. Then you can give every character 21 > bits, and be happy that you don't waste even one bit. Could go better! Since not every character has been assigned, and some are specifically banned (eg U+FFFE and U+D800-U+DFFF), you could cut them out of your representation system and save memory! ChrisA