This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In Perl_pad_new(), avoid calling av_fetch() for something we already know.
authorNicholas Clark <nick@ccl4.org>
Tue, 16 Nov 2010 10:51:26 +0000 (10:51 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 16 Nov 2010 10:51:26 +0000 (10:51 +0000)
commit403799bf19538009b2d9e762e57456168d29ca0e
tree6577d3b5ae8f035228ac66e53c3af4cc8f88fad3
parent249534c343ab758089ce40786709465e328c8b2d
In Perl_pad_new(), avoid calling av_fetch() for something we already know.

We've just stored padname and pad as the first two elements in padlist - so
calling av_fetch() is makework.

The code was the way it was because dd2155a49b710f23 moved the two halves from
disjoint locations into the same function adjacent to each other, but didn't
spot this subsequent optimisation.
pad.c