Welcome to the Monastery | |
PerlMonks |
Re^2: Objects as arrays but with autogenerated getters + settersby tinita (Parson) |
on Jun 27, 2006 at 12:45 UTC ( [id://557781]=note: print w/replies, xml ) | Need Help?? |
yes, i did a simple benchmark:
$foo is a blessed hash and $bar a blessed array. both have 15 attributes. the array subroutine takes about 93% of the time. memory saving depends, of course,
on the length of the hash keys. with 15 hash keys of length 5 i save about
edit: i measured wrong for the memory test. i was just copying references before.
In Section
Seekers of Perl Wisdom
|
|