develooper Front page | perl.perl5.porters | Postings from September 2012

Re: [PATCH part2] Scalar Types enable Minimal Copying

Thread Previous
From:
Reverend Chip
Date:
September 29, 2012 16:42
Subject:
Re: [PATCH part2] Scalar Types enable Minimal Copying
Message ID:
50678762.1040704@gmail.com
On 9/29/2012 9:30 AM, Dave Mitchell wrote:
> On Fri, Aug 12, 2011 at 01:33:55AM -0700, Chip Salzenberg wrote:
>> One of hte annoying things about copying a Perl value is that if it happens
>> to be a large representation, the copy will be too, even if there's no need.
> [snip]
>> PS: A few self-tests are failing but for obscure reasons (e.g. after forking
>> a child perl).  These might just be artifacts of weird build history.  Will
>> advise.
> Just clearing out old emails and noticed no-one ever replied to this.
> Did anything ever happen with this? Were the failing tests resolved?
> It looks on first glance to be a sensible optimisation.

To work fully, it needs scalar provenance flags.  A version of this
could easily be devised that doesn't depend on provenance; it would at
least keep PVMG from propagating, reducing to PVNV or PVIV generally. 
But nobody did that.


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About