go ahead... be a heretic | |
PerlMonks |
Re: Re: A memory efficient hash, trading off speed - does it already exist?by nothingmuch (Priest) |
on Feb 05, 2003 at 14:30 UTC ( [id://232817]=note: 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 Section
Seekers of Perl Wisdom
|
|