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)
commitcd298ce42eb3c82a651608c3fbd658ec616b0297
tree7fd7e62795659db2b78aac0c5bb39f136c398e9d
parent08bf00be470db7b367e14733226d4fddc004c796
parentf5a0fd1e07ceb4866d2eee4eb9283498cd3ef1be
[Merge] New COW mechanism

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.