Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41841

Re: Performance of int/long in Python 3

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.091
X-Spam-Evidence '*H*': 0.84; '*S*': 0.02; 'subject:Python': 0.06; 'oh,': 0.09; 'unified': 0.09; 'python': 0.11; '2.2,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'longs': 0.16; 'remembers': 0.16; 'wrote:': 0.18; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; "d'aprano": 0.31; 'steven': 0.31; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'received:209': 0.37; 'performance': 0.37; 'somebody': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'royal': 0.61; 'managing': 0.66; 'mar': 0.68; '26,': 0.68; 'hand': 0.80; 'subject:long': 0.84; 'absolutely': 0.87; 'pita.': 0.91; '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=+yN+xm32X6TnEBSbMwEvpOLQ4UprCKuMJmjKaJMVI8o=; b=l7T4+3jcfiRL0aVLDH+FIkpBH/hSIrkSNJjMmmGNfJWbRdT9S/llPHLa5+yu2DVOfw Lrhrzz7yLGCb0jUxk+wzO2/kbyO4XW+viHNAqGpWZSSNzpVXP5qf4Y78YbBFcGLBowHq 15KE2ASpmHExn7kMikUBigy7CMwkpc8GsJuLjMe4CDtbwyd9Z2xiXYHrWG16oZfR8FiN ZbEysp+srTVh31KQfpCRjFTzYC+o8puHcZpMUQMiUEit5SpP8gyadYSB+yfDEUIBRgdi L3ea5pszWw61Mz0auplbJw7y3g4mndjzHFDeZbsMhYHao9Szcw4h4M1ytU3MbIy4Ilwy hFYw==
MIME-Version 1.0
X-Received by 10.52.22.194 with SMTP id g2mr15721591vdf.91.1364257706213; Mon, 25 Mar 2013 17:28:26 -0700 (PDT)
In-Reply-To <5150e900$0$29998$c3e8da3$5496439d@news.astraweb.com>
References <CAPTjJmouUzXNr4Oq==LYB1UZ2UQb13Y6vTHGGzuzNXorNthjYg@mail.gmail.com> <mailman.3705.1364253727.2939.python-list@python.org> <5150e900$0$29998$c3e8da3$5496439d@news.astraweb.com>
Date Tue, 26 Mar 2013 11:28:25 +1100
Subject Re: Performance of int/long in Python 3
From Chris Angelico <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3708.1364257709.2939.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1364257709 news.xs4all.nl 6948 [2001:888:2000:d::a6]:47673
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:41841

Show key headers only | View raw


On Tue, Mar 26, 2013 at 11:17 AM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> Also, speaking as somebody who remembers a time when ints where not
> automatically promoted to longs (introduced in, Python 2.2, I think?) let
> me say that having a single unified int type is *fantastic*, and managing
> ints/longs by hand is a right royal PITA.

Oh, I absolutely agree! I'm just looking at performance here, but
definitely the int/long unification is a Good Thing.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Performance of int/long in Python 3 Ethan Furman <ethan@stoneleaf.us> - 2013-03-25 16:16 -0700
  Re: Performance of int/long in Python 3 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-26 00:17 +0000
    Re: Performance of int/long in Python 3 Chris Angelico <rosuav@gmail.com> - 2013-03-26 11:28 +1100
    Re: Performance of int/long in Python 3 Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-03-26 00:49 +0000
    Re: Performance of int/long in Python 3 Roy Smith <roy@panix.com> - 2013-03-25 20:55 -0400
      Re: Performance of int/long in Python 3 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-26 05:01 +0000
        Re: Performance of int/long in Python 3 Chris Angelico <rosuav@gmail.com> - 2013-03-26 17:12 +1100
        Re: Performance of int/long in Python 3 Roy Smith <roy@panix.com> - 2013-03-26 09:18 -0400

csiph-web