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


Groups > comp.lang.python > #41623

Re: "monty" < "python"

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <tim.delaney@aptare.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'string.': 0.04; 'ascii': 0.07; 'bytes.': 0.07; 'python': 0.09; '(although': 0.09; 'regression': 0.09; 'vast': 0.09; 'worse': 0.09; 'stored': 0.10; 'thread': 0.11; 'subject:python': 0.11; 'cases': 0.15; 'to:name :python-list': 0.15; 'is).': 0.16; 'it..': 0.16; 'obsessed': 0.16; 'troll': 0.16; 'wider': 0.16; 'string': 0.17; 'wrote:': 0.17; 'byte': 0.17; 'bytes': 0.17; 'unicode': 0.17; 'tim': 0.18; 'memory': 0.18; 'email addr:gmail.com&gt;': 0.20; 'occurs': 0.22; 'rapidly': 0.22; 'header:In-Reply-To:1': 0.25; 'appear': 0.26; '(which': 0.26; 'creating': 0.26; '----': 0.27; 'message- id:@mail.gmail.com': 0.27; 'actual': 0.28; 'consequence': 0.29; 'character': 0.29; 'skip:& 10': 0.29; 'sense': 0.31; 'code': 0.31; 'point': 0.31; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'list.': 0.35; 'but': 0.36; 'characters': 0.36; 'expensive': 0.36; 'possible': 0.37; 'keeps': 0.37; 'usual': 0.37; 'received:209': 0.37; 'perform': 0.38; 'possible.': 0.38; 'shows': 0.38; 'performance': 0.39; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'where': 0.40; 'decision': 0.60; 'easy': 0.60; 'range': 0.60; 'most': 0.61; 'real': 0.61; 'situation': 0.62; 'mentioned': 0.63; 'more': 0.63; 'become': 0.65; 'attention': 0.75; 'participants': 0.78; '(increase': 0.84; '2013': 0.84; 'delaney': 0.84; 'regarded': 0.84; 'reducing': 0.95
X-USANET-Received from gwo1.mbox.net [127.0.0.1] by gwo1.mbox.net via mtad (C8.MAIN.3.82G) with ESMTP id 845RcTVc30544Mo1; Wed, 20 Mar 2013 21:02:54 -0000
X-USANET-GWS2-Tagid UNKN
X-USANET-Source 165.212.120.254 OUT tim.delaney@aptare.com S1P5HUB1.EXCHPROD.USA.NET
X-USANET-MsgId XID337RcTVc31888Xo1
MIME-Version 1.0
X-Received by 10.60.6.199 with SMTP id d7mr5036289oea.137.1363813373660; Wed, 20 Mar 2013 14:02:53 -0700 (PDT)
In-Reply-To <987098b6-d79c-4597-b656-9b3e983740e8@z3g2000vbg.googlegroups.com>
References <d618f760-67d0-4c5f-865b-406e9a58a611@h11g2000vbf.googlegroups.com> <kicmmc$1eb$1@reader2.panix.com> <987098b6-d79c-4597-b656-9b3e983740e8@z3g2000vbg.googlegroups.com>
Date Thu, 21 Mar 2013 08:02:53 +1100
Subject Re: "monty" < "python"
From Tim Delaney <tim.delaney@aptare.com>
To Python-List <python-list@python.org>
Content-Type multipart/alternative; boundary="e89a8fb1fd74ad5ff404d8618b6b"
X-Originating-IP [209.85.214.175]
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.3576.1363813553.2939.python-list@python.org> (permalink)
Lines 77
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1363813553 news.xs4all.nl 6881 [2001:888:2000:d::a6]:57641
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:41623

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 21 March 2013 06:40, jmfauth <wxjmfauth@gmail.com> wrote:

> ----
> [snip usual rant from jmf]


Franz, please pay no attention to jmf. He has become obsessed with a single
small regression in Python 3.3 in performance with how strings perform in a
very small domain that rarely shows up in practice (although as he has
demonstrated, it is easy to create a microbenchmark that makes it appear to
be much worse than it is).

The regression is a consequence of the decision in Python 3.3 to
*correctly* support the full range of Unicode characters whilst also
reducing the required memory where possible. In the vast majority of cases
this is a performance *improvement*. It is only "optimised for the ascii
user" in the sense that in the Unicode standard the pre-existing ASCII
characters only require 1 byte per code point and hence can be stored in
less memory than most other Unicode code points. The possible character
widths are 1, 2 and 4 bytes.

The actual regression occurs when concatentating/replacing/etc a character
to a string that is wider than any other character currently in the string.
In this situation the new string needs to be widened (increase the number
of bytes used by every character) which is a much more expensive operation
than simply creating a new string (which is what would happen if the
character was the same size or smaller).

It has been acknowledged as a real regression, but he keeps hijacking every
thread where strings are mentioned to harp on about it. He has shown no
inclination to attempt to *fix* the regression and is rapidly coming to be
regarded as a troll by most participants in this list.

Tim Delaney

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


Thread

"monty" < "python" franzferdinand <melo.dumoulin@hotmail.com> - 2013-03-20 06:33 -0700
  Re: "monty" < "python" Jan Oelze <jan@codein.is> - 2013-03-20 14:38 +0100
    Re: "monty" < "python" Roy Smith <roy@panix.com> - 2013-03-20 09:58 -0400
      Re: "monty" < "python" franzferdinand <melo.dumoulin@hotmail.com> - 2013-03-20 07:03 -0700
        Re: "monty" < "python" Terry Reedy <tjreedy@udel.edu> - 2013-03-21 04:08 -0400
          Re: "monty" < "python" Roy Smith <roy@panix.com> - 2013-03-21 08:45 -0400
            Re: "monty" < "python" Chris Angelico <rosuav@gmail.com> - 2013-03-21 23:55 +1100
            Re: "monty" < "python" Wayne Werner <wayne@waynewerner.com> - 2013-03-21 07:56 -0500
            Re: "monty" < "python" Dave Angel <davea@davea.name> - 2013-03-21 09:02 -0400
  Re: "monty" < "python" "R. Michael Weylandt" <michael.weylandt@gmail.com> - 2013-03-20 13:40 +0000
  Re: "monty" < "python" Ian Foote <ian@feete.org> - 2013-03-20 14:17 +0000
  Re: "monty" < "python" Jan Oelze <jan@codein.is> - 2013-03-20 15:23 +0100
  Re: "monty" < "python" Grant Edwards <invalid@invalid.invalid> - 2013-03-20 16:04 +0000
    Re: "monty" < "python" jmfauth <wxjmfauth@gmail.com> - 2013-03-20 12:40 -0700
      Re: "monty" < "python" Tim Delaney <tim.delaney@aptare.com> - 2013-03-21 08:02 +1100
        Re: "monty" < "python" jmfauth <wxjmfauth@gmail.com> - 2013-03-23 02:24 -0700
          Re: "monty" < "python" Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-23 16:17 +0000
            Re: "monty" < "python" jmfauth <wxjmfauth@gmail.com> - 2013-03-24 06:31 -0700
              Re: "monty" < "python" Chris Angelico <rosuav@gmail.com> - 2013-03-25 00:44 +1100
              Re: "monty" < "python" Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-24 14:08 +0000
      Re: "monty" < "python" Michael Torrie <torriem@gmail.com> - 2013-03-20 19:41 -0600
      Re: "monty" < "python" Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-21 02:52 +0000
      Re: "monty" < "python" rusi <rustompmody@gmail.com> - 2013-03-20 20:12 -0700
        Vowels [was Re: "monty" < "python"] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-21 04:28 +0000
          Re: Vowels [was Re: "monty" < "python"] Larry Hudson <orgnut@yahoo.com> - 2013-03-20 23:26 -0700
            Re: Vowels [was Re: "monty" < "python"] David H Wild <dhwild@talktalk.net> - 2013-03-21 09:36 +0000
              Re: Vowels [was Re: "monty" < "python"] Chris Angelico <rosuav@gmail.com> - 2013-03-21 21:09 +1100
                Re: Vowels [was Re: "monty" < "python"] Peter Pearson <ppearson@nowhere.invalid> - 2013-03-21 21:52 +0000
                Re: Vowels [was Re: "monty" < "python"] Chris Angelico <rosuav@gmail.com> - 2013-03-22 08:59 +1100
              Re: Vowels [was Re: "monty" < "python"] istjanichtzufassen@gmail.com - 2013-03-21 06:26 -0700
                Re: Vowels [was Re: "monty" < "python"] Chris Angelico <rosuav@gmail.com> - 2013-03-22 00:38 +1100
          Re: Vowels [was Re: "monty" < "python"] Grant Edwards <invalid@invalid.invalid> - 2013-03-21 17:31 +0000
            Re: Vowels [was Re: "monty" < "python"] Terry Reedy <tjreedy@udel.edu> - 2013-03-21 19:05 -0400
              Re: Vowels [was Re: "monty" < "python"] Roy Smith <roy@panix.com> - 2013-03-21 20:09 -0400
              Re: Vowels [was Re: "monty" < "python"] Grant Edwards <invalid@invalid.invalid> - 2013-03-22 14:14 +0000
            Re: Vowels [was Re: "monty" < "python"] Stefan Behnel <stefan_ml@behnel.de> - 2013-03-24 15:25 +0100
              Re: Vowels [was Re: "monty" < "python"] rusi <rustompmody@gmail.com> - 2013-03-24 08:04 -0700
            Re: Vowels [was Re: "monty" < "python"] Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-24 16:12 +0000
        Re: "monty" < "python" jmfauth <wxjmfauth@gmail.com> - 2013-03-23 02:23 -0700
          Re: "monty" < "python" Chris Angelico <rosuav@gmail.com> - 2013-03-23 20:45 +1100
          Re: "monty" < "python" Chris Angelico <rosuav@gmail.com> - 2013-03-23 20:56 +1100
          Re: "monty" < "python" Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-23 16:06 +0000

csiph-web