This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Hash lookup of constant strings optimization:
authorNick Ing-Simmons <nik@tiuk.ti.com>
Sun, 3 Sep 2000 21:54:46 +0000 (21:54 +0000)
committerNick Ing-Simmons <nik@tiuk.ti.com>
Sun, 3 Sep 2000 21:54:46 +0000 (21:54 +0000)
commit1c846c1f6d96d2ca4dfccdcfc0ff050c1474993e
tree052cab67c23c5f42f2f3fbf0d595e76961d271d2
parent6570e624857a0fc90e8fa87d3479a32bd7482703
Hash lookup of constant strings optimization:
Introduce SvREADONLY && SvFAKE to flag an SV which has SvPVX pointing
to string table (as per sharepvn). Add newSV_pvn_share to create such
a thing. Make hv.c compare addresses of strings and skip string compare
if equal. Make method_named and helem ops use these shared-string SVs
when arg is constant. Make keys op return shared-string SVs (less clearly
a win).

p4raw-id: //depot/perl@7016
14 files changed:
embed.h
embed.pl
embedvar.h
global.sym
hv.c
objXSUB.h
op.c
perlapi.c
perlapi.h
pod/perlapi.pod
pod/perlintern.pod
pp_hot.c
proto.h
sv.c