summaryrefslogtreecommitdiff
path: root/gv.h
diff options
context:
space:
mode:
authorsyber <syber@crazypanda.ru>2014-08-08 19:03:03 +0400
committerSteffen Mueller <smueller@cpan.org>2014-08-20 09:12:01 +0200
commit4e7ebec5b38b722121a7df00ce087bb49f1c6d43 (patch)
tree5a5e862f19b63fde37e97d0021bca0ce3262e504 /gv.h
parentf88f10f50706154dd7828ac8abe4a02f99a5e280 (diff)
downloadperl-4e7ebec5b38b722121a7df00ce087bb49f1c6d43.tar.gz
Make gv_stashpvn() use PL_stashcache
perl has a stash name lookup cache, which is currently just used for looking up up class names in Some::Class->method calls. This means that a lookup of the class name 'A::B::C' gets reduced from doing several stash lookups (e.g. $::{'A::'}{'B::'}{'C::'}) to a single cache lookup (e.g. $PL_stashcache{'A::B::C::'}, so to speak). Make gv_stashpvn() use this cache too, which means that all package name lookups benefit, not just class method calls. Among other things, this also indirectly affects bless operations both from Perl (OP_BLESS) and XS.
Diffstat (limited to 'gv.h')
0 files changed, 0 insertions, 0 deletions