This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pad.c:cv_clone_pad: Avoid copying sv
authorFather Chrysostomos <sprout@cpan.org>
Tue, 4 Nov 2014 21:25:49 +0000 (13:25 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 13 Nov 2014 12:49:43 +0000 (04:49 -0800)
commit04472a849792297300059ba880a7ad59900aa5b8
treeb45e7fedc5d0315db8d05f3f07c88b32a6db882c
parente4211fee6f4152b99074ac26f85747ac3fba448b
pad.c:cv_clone_pad: Avoid copying sv

When we capture the lexical variable in order to make sub () {$x}
constant, we don’t have to copy it if it is not modified or referenced
elsewhere.
pad.c
scope.c