[32818] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 4083 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Nov 25 14:09:31 2013

Date: Mon, 25 Nov 2013 11:09:02 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Mon, 25 Nov 2013     Volume: 11 Number: 4083

Today's topics:
    Re: Several Topics - Nov. 19, 2013 <cwilbur@chromatico.net>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Sun, 24 Nov 2013 23:30:12 -0500
From: Charlton Wilbur <cwilbur@chromatico.net>
Subject: Re: Several Topics - Nov. 19, 2013
Message-Id: <87d2lpw1bf.fsf@new.chromatico.net>

>>>>> "BM" == Ben Morrow <ben@morrow.me.uk> writes:

    BM> I don't think that's the case. All the variables in that sub are
    BM> created at compile time; and after the first iteration both
    BM> arrays remain allocated to full length.

The time hit I expect isn't in allocation; it's in copying.

If I have @foo with 1000 strings, and I say @bar = reverse @foo, that
requires copying 1000 strings, no? 

Charlton



-- 
Charlton Wilbur
cwilbur@chromatico.net


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 4083
***************************************


home help back first fref pref prev next nref lref last post