Message from discussion
Constant strings - again
Newsgroups: perl.perl6.internals
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <jcli...@mac.com>
Mailing-List: contact perl6-internals-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-intern...@perl.org
Received: (qmail 40996 invoked by uid 76); 21 Apr 2004 18:21:36 -0000
Received: from x1.develooper.com (HELO x1.develooper.com) (63.251.223.170)
by onion.perl.org (qpsmtpd/0.27.1) with SMTP; Wed, 21 Apr 2004 11:21:36 -0700
Received: (qmail 3961 invoked by uid 225); 21 Apr 2004 18:21:32 -0000
Delivered-To: perl6-intern...@perl.org
Received: (qmail 3950 invoked by alias); 21 Apr 2004 18:21:32 -0000
X-Spam-Status: No, hits=0.0 required=7.0
tests=
X-Spam-Check-By: la.mx.develooper.com
Received: from smtpout.mac.com (HELO smtpout.mac.com) (17.250.248.86)
by la.mx.develooper.com (qpsmtpd/0.27.1) with ESMTP; Wed, 21 Apr 2004 11:21:30 -0700
Received: from mac.com (smtpin08-en2 [10.13.10.153])
by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id i3LIDSIC016076;
Wed, 21 Apr 2004 11:13:28 -0700 (PDT)
Received: from [192.168.0.60] (adsl-209-204-178-23.sonic.net [209.204.178.23])
(authenticated bits=0)
by mac.com (Xserve/smtpin08/MantshX 3.0) with ESMTP id i3LIDRTK017146;
Wed, 21 Apr 2004 11:13:27 -0700 (PDT)
In-Reply-To: <200404211714.i3LHEsn17584@thu8.leo.home>
References: <407FB1AF.2060003@toetsch.at> <200404181506.i3IF6oo30330@thu8.leo.home> <A14A6816-91DA-11D8-8CC6-000393A6B9DA@mac.com> <200404190925.i3J9PIA24677@thu8.leo.home> <A088C20E-92EB-11D8-ACDD-000393A6B9DA@mac.com> <200404211105.i3LB5X010309@thu8.leo.home> <0F17C756-93B0-11D8-ACDD-000393A6B9DA@mac.com> <200404211714.i3LHEsn17584@thu8.leo.home>
Mime-Version: 1.0 (Apple Message framework v609)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-ID: <948D051C-93BF-11D8-9B38-000393A6B9DA@mac.com>
Content-Transfer-Encoding: 7bit
Cc: perl6-intern...@perl.org
Subject: Re: Constant strings - again
Date: Wed, 21 Apr 2004 11:13:24 -0700
To: l...@toetsch.at
X-Mailer: Apple Mail (2.609)
Approved: n...@nntp.perl.org
From: jcli...@mac.com (Jeff Clites)
On Apr 21, 2004, at 10:14 AM, Leopold Toetsch wrote:
> The "equal" case was missing one thing: if both strings are COWed
> copies,
> the compare can be avoided too - it's equally fast then, as "not
> equal".
That makes sense, as long as we never optimize substring via a COW copy
with a different strlen. (That is, one could optimize the
initial-substring case that way, though I don't think we do that
currently.)
JEff