Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:Python': 0.06; 'pep': 0.09; 'so?': 0.09; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'integer.': 0.16; 'internally': 0.16; 'pulling': 0.16; 'thread?': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'integer': 0.24; 'merge': 0.24; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'character': 0.29; 'message-id:@mail.gmail.com': 0.30; 'received:209.85': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'heard': 0.39; 'to:addr:python.org': 0.39; 'removing': 0.60; 'first': 0.61; 'effectively': 0.66; 'mar': 0.68; 'subject:long': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=gmVzmEMz3wYbM+pVf9gq+B1n3inA4uMB5SHz5Xw/Kgg=; b=sRZmphlitipQyM+L8BaBkiynCJh6vO2S+ArSf976kMe+4A+zihSnzlC35rTyL5ymhB qUdm3JiHndbRb6/CwvruBSCIy5DEcQy1NFdMPR1GDD3yDTCjhPXqWfG0/r2baM3aSAgy Mpw0dmp4ZgPNRhv3NJcxWk2+R0OsIoJ8W1RYPOq1Op2v3XfMTvm+3l/3mahchy0vJjo+ hIJGdwtP/lepWHhZtaaYyXHy+3D16AXin83vNMTyYBQa+e2mlVoMb0tpgZQEFaB5mOMq eqsT+oy9uROerAGD/oOY3+528ZX8RhnXRgOJ2fBBS7PYitYoGiqn3NfV0hJRFKi9plYr Hw+w== MIME-Version: 1.0 X-Received: by 10.52.37.109 with SMTP id x13mr18110467vdj.10.1364331130128; Tue, 26 Mar 2013 13:52:10 -0700 (PDT) In-Reply-To: <0b779c80-4f50-4716-8c30-47755c15f304@m12g2000yqp.googlegroups.com> References: <0b779c80-4f50-4716-8c30-47755c15f304@m12g2000yqp.googlegroups.com> Date: Wed, 27 Mar 2013 07:52:09 +1100 Subject: Re: Performance of int/long in Python 3 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364331132 news.xs4all.nl 6859 [2001:888:2000:d::a6]:58039 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41950 On Wed, Mar 27, 2013 at 7:44 AM, jmfauth wrote: > On 26 mar, 20:03, Chris Angelico wrote: >> On Wed, Mar 27, 2013 at 5:50 AM, jmfauth wrote: >> > On 25 mar, 22:51, Chris Angelico wrote: >> >> The Python 3 merge of int and long has effectively penalized >> >> small-number arithmetic by removing an optimization. As we've seen >> >> from PEP 393 strings (jmf aside), there can be huge benefits from >> >> having a single type with multiple representations internally ... >> >> > ------ >> >> > A character is not an integer (short form). >> >> So? >> >> ChrisA > > A character is not an integer. Yes, I heard you the first time. And I repeat: A needle pulling thread? You have not made any actual, uhh, _point_. ChrisA