Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.freenet.ag!newsfeed0.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?) Date: Mon, 21 Mar 2016 23:59:42 +1100 Lines: 10 Message-ID: References: <56e44258$0$1598$c3e8da3$5496439d@news.astraweb.com> <8737rvxs89.fsf@elektro.pacujo.net> <56e7483d$0$1608$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de HtaJuCEbqJpyf/ka/jwDQwUZmhQMyawtc+K2IKW98ncw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; '21,': 0.07; 'cc:addr :python-list': 0.09; 'dict': 0.09; 'subject:which': 0.09; 'python': 0.10; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:?)': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'header:In-Reply- To:1': 0.24; 'mon,': 0.24; 'message-id:@mail.gmail.com': 0.27; 'character.': 0.29; 'code': 0.30; 'table': 0.32; 'indexed': 0.33; 'received:google.com': 0.35; 'needed': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'forget': 0.60; 'subject:The': 0.61; 'skip:n 10': 0.62; 'mar': 0.65; 'chrisa': 0.84; 'to:none': 0.91 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:cc; bh=t3ZwXH/37wq/aVqpcn1WQDc4pHGuH7wCTBM/p0hsD2A=; b=a52KrWWVeehgn/SawTsy09RiXkpJ7Rca0yrGx0s+jfz+mawWybQxF4kOZKLN7OxgU0 t9Np1l88Mlo11r3kHHDegHfQKgYSvSZDLVqy8bAO9gpTw80zJLDgQA0+DM6b3ysAsHYu EqMnnieRJkJpGa7upz/dktISnp+2AQb/tz4dcBaqKeUzb7TkkJa2UiZFswIkpfRY5RJI JW/YUjpBjdg+80xuHJtELopqUUzjtLazsGyKVavLW9YHcJaDpV8mmlXevk5Z3uG36pok 8eJds0ISEtTzuXJ5SuYwn3gjuJDTy97lGbgstbUb/+hhv7JERrNQ9rm1drJEtj0vcjBv AGYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=t3ZwXH/37wq/aVqpcn1WQDc4pHGuH7wCTBM/p0hsD2A=; b=dhVDyNKsWPpwMv+AWG1Mz5NgK7nIKBfz0t6pmizKMfv8oLZa0yuEYUEANPqsTeY2Z9 nStAaZZ+T/PJpAzrJokP+rq2K6gZsHFiyp8UkNvFRIAw7yzHhzSgRqyXcpPTLzO/LIzS D+iu5m6FcGN6L48o5aj1LB3Kbp+Wg4n0qIslcijIEtoVJNbKAGG+t22ni+iYNvurNRLQ sxcrffG/5hnE2PX4fx0DBNU4TgsXi2dvMRfN5Crh4gZwpOGlEqu6QRx2xljJxaXnTjqY /FJgM7jlD3r4okYKtrLJAhaj6p5a7K8tfZArqclAwYaaqwvtqmJHSmj6m2z/aK5ZMT6n Yieg== X-Gm-Message-State: AD7BkJJRNRmjiVX6k/H7ap8GU1jZjwrj40NjeqMEOvmQb36olEFAO11Xs6Qfk3IhCy89J8AfGNEot/Ad3CTm9w== X-Received: by 10.51.17.34 with SMTP id gb2mr12178374igd.13.1458565182860; Mon, 21 Mar 2016 05:59:42 -0700 (PDT) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105354 On Mon, Mar 21, 2016 at 11:34 PM, BartC wrote: > For Python I would have used a table of 0..255 functions, indexed by the > ord() code of each character. So all 52 letter codes map to the same > name-handling function. (No Dict is needed at this point.) > Once again, you forget that there are not 256 characters - there are 1114112. (Give or take.) ChrisA