Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!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.086 X-Spam-Evidence: '*H*': 0.83; '*S*': 0.00; 'subject:Python': 0.06; 'pep': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'mostly': 0.14; 'occurs,': 0.16; 'thread?': 0.16; 'cc:addr:python.org': 0.22; 'merge': 0.24; 'initial': 0.24; 'cc:2**0': 0.24; 'post': 0.26; 'subject:/': 0.26; 'header:In- Reply-To:1': 0.27; 'point': 0.28; 'received:209.85.217': 0.29; 'message-id:@mail.gmail.com': 0.30; '"the': 0.34; 'received:209.85': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'next': 0.36; 'thanks': 0.36; 'received:209': 0.37; 'removing': 0.60; 'making': 0.63; 'such': 0.63; 'happen': 0.63; 'different': 0.65; 'effectively': 0.66; 'obvious': 0.74; 'internally.': 0.84; 'subject:long': 0.84; 'responses': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=qvPCyuDjNLXpfAd/HXEnngJST0B/1jrfuc7NBfYkMe0=; b=nlSWIC3005qOHF+kkY6WWZMmjmFp/1vvj2wCM4zV84L5WtXqiCJs5szBfZ7ENCDuSl EiooKVGB5epHfi3Gpt2dV06+1OJ7IN3PF7N+lkx7osnMUcdlu9+0Jo8jhmPAOsVyGPfO X6UBuJBAmkrmcPCkVg/H6NPXFz8fvXhMiV6mfeU63CNZxG6AMBVpNBtRxaCiGj43H4xd E/1Dr/jcAkBaVX7w3YkRGNq2uNFb4BMQUyPnMKgh3lcrb9y0fGgfRTMCnFUqmYyc9jHt J3MWnavrwJRfkJSJJ9cn5tXlwFUE/zvELazm9BbaY2gaXqxc6gmGkbXDO/B6+Mk3pxAo 1Kng== X-Received: by 10.152.106.5 with SMTP id gq5mr8774709lab.5.1364942441390; Tue, 02 Apr 2013 15:40:41 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5159beb6$0$29967$c3e8da3$5496439d@news.astraweb.com> <4103dc28-a0dc-4740-bb38-b6bcb58bedfb@h1g2000vbx.googlegroups.com> <515a9851$0$29891$c3e8da3$5496439d@news.astraweb.com> <515ae520$0$29967$c3e8da3$5496439d@news.astraweb.com> <7f0f6502-6368-4d58-b248-36653e2b3cfa@w21g2000vbp.googlegroups.com> From: Joshua Landau Date: Tue, 2 Apr 2013 23:40:01 +0100 Subject: Re: Performance of int/long in Python 3 To: Terry Jan Reedy Content-Type: multipart/alternative; boundary=f46d04083f2d5baada04d9686dae 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: 53 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364942450 news.xs4all.nl 6948 [2001:888:2000:d::a6]:36254 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42610 --f46d04083f2d5baada04d9686dae Content-Type: text/plain; charset=ISO-8859-1 The initial post posited: "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. Is there value in making the int type have a machine-word optimization in the same way?" Thanks to the fervent response jmf has gotten, the point above has been mostly abandoned May I request that next time such an obvious diversion (aka. jmf) occurs, responses happen in a different thread? --f46d04083f2d5baada04d9686dae Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The initial post posited:
=
"The Python 3 merge of int and long has effectively penali= zed
small-number ar= ithmetic by removing an optimization. As we've seen
from PEP 393 strings (jmf aside), there can b= e huge benefits from
having a single= type with multiple representations internally. Is
there value in making the int type have a machine-= word optimization in
the same way?&q= uot;

Thanks to the fervent response jmf has got= ten, the point above has been mostly=A0abandoned=A0 May I request that next= time such an obvious diversion (aka. jmf) occurs, responses happen in a di= fferent thread?
--f46d04083f2d5baada04d9686dae--