develooper Front page | perl.perl6.internals | Postings from June 2001

Re: The internal string API

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
June 20, 2001 10:03
Subject:
Re: The internal string API
Message ID:
5.1.0.14.0.20010620121559.02083d08@24.8.96.48
At 05:43 PM 6/19/2001 -0500, David L. Nicol wrote:
>         set $B to copy-on-write mode, so future changes to $B do not 
> affect $A

The one problem with copy-on-write is that, if we implement it in software, 
we end up paying the price to check it on every string write. (No free 
depending on the hardware, alas)

Not that this should shoot down the idea of COW strings, but it is a cost 
that needs considering. (I suppose we could have a COW subtype of the basic 
scalar and string scalar)

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


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