This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[Merge] New COW mechanism
authorFather Chrysostomos <sprout@cpan.org>
Tue, 27 Nov 2012 15:08:08 +0000 (07:08 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 27 Nov 2012 15:08:50 +0000 (07:08 -0800)
This branch makes string copying faster by introducing a new copy-on-
write mechanism.  A reference count for the string buffer is now
stored inside the string buffer itself.  This can be disabled with
-Accflags=-DPERL_NO_COW.

It also disables the PL_sawampersand mechanism, as copy-on-write
can now be used for the pre-match ‘copy’, resulting in no slow-
down from using $& and f(r)iends.  This can be reënabled with
-Accflags=-DPERL_SAWAMPERSAND.


Trivial merge