go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Pseudo hashes are, as indicated by the adjective (?) 'pseudo', not really hashes.
Pseudo hashes are a way of telling the compiler how to map keys to arrays, and translate all references to such keys, hard-coded (i think), into array indices. This allows easier building of staticly defined key sets for objects and configuration structures, etc, via the hash interface. The actual implementation is on an array, yielding lower memory requirements, and a speed increase. It's an array with a compile time overhead. -nuffin zz zZ Z Z #!perl In reply to Re: Re: A memory efficient hash, trading off speed - does it already exist?
by nothingmuch
|
|