BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
in Re: Perl Hashes in C?, I construct a hash using the perlapi from Inline::C.
Two of the apis, hv_fetch() and hv_store() optionally take a numeric hash value which if supplied is used directly rather than the key string and length being (re)hashed.
I assume that idea is that once you've hashed a key once, it saves rehashing it; but the fly in that ointment is that there does not seem to be any api to obtain the hash value?
Also, there does not appear to be an equivalent option to supply the hash value to hv_exists()?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PerlApi: hashes
by Anonymous Monk on Aug 12, 2015 at 02:32 UTC | |
by BrowserUk (Patriarch) on Aug 12, 2015 at 04:28 UTC | |
by Anonymous Monk on Aug 12, 2015 at 06:40 UTC | |
by BrowserUk (Patriarch) on Aug 12, 2015 at 12:38 UTC | |
by NERDVANA (Priest) on Jul 11, 2018 at 04:02 UTC | |
by Anonymous Monk on Aug 12, 2015 at 02:38 UTC | |
by BrowserUk (Patriarch) on Aug 12, 2015 at 04:32 UTC |