This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
introduce gv_stashsvpvn_cached()
authorsyber <syber@crazypanda.ru>
Mon, 1 Sep 2014 21:47:54 +0000 (23:47 +0200)
committerYves Orton <demerphq@gmail.com>
Mon, 1 Sep 2014 22:32:54 +0000 (00:32 +0200)
commit808724c8e7a94623556f18e681fba068b52291a5
tree479c30e5e96cca563ee448c5361d5a09025460b1
parent0eadbdad7ec0b0c6fc943adc20d761deb02e55b8
introduce gv_stashsvpvn_cached()

Wrap gv_stashpvn_internal() with a routine which caches
what it does, and rework gv_stashsv() and gv_stashpvn()
to use the cached codepath.

Also rework the documentation of gv_stashsv() and gv_stashpvn()
that the gv_stashsv() is prefered as there is a mechanism to cache
the hash value associated with the name which requires an SV
to passed in as an argument for caching purposes.

Note this is a reworked version of sybers original patch.
embed.fnc
embed.h
gv.c
proto.h