develooper Front page | perl.perl5.porters | Postings from January 2001

hash keys (Re: Ideas for papers)

Thread Previous | Thread Next
Nicholas Clark
January 17, 2001 15:06
hash keys (Re: Ideas for papers)
Message ID:
On Sat, Jan 13, 2001 at 09:21:09AM -0700, Nathan Torkington wrote:
>  - work out how to precalculate the hash values for things like
>    UNIVERSAL and main:: and other commonly hashed strings, and see
>    what kind of performance win results (if any)

Did anyone on here suggest storing the computed hash key for a SV in the
IV slot (in the same way that SVf_OOK stores the offset)? Or is my memory
deceiving me?

Either way, is it OK to meddle with the IV slot on a SV with SVf_READONLY set?
Is it a sign that the value isn't mutable? Or that it's to be treated as if
it's in read only memory?

Nicholas Clark

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About