Subject: | More memory than required. value-undef vs value-1 |
Some of these algos are slower and more wasteful than need be in even a
PP implementation. undef is special in perl, all occurrences where you
use the perl internal hashing and discard values, you should set the
value to undef, to avoid creating a new perl scalar.
$_=>undef, rather than $_=>1
See PL_sv_undef for more info.
--
<a href="http://www.evancarroll.com">Evan Carroll</a>