|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re^5: keys and values order on a hashby BrowserUk (Patriarch) |
| on Jul 11, 2011 at 19:15 UTC ( [id://913758]=note: print w/replies, xml ) | Need Help?? |
|
Nothing, it's a benchmark. It's the nature of benchmarks to consider code in isolation, with as minimal side-effects as possible to measure the differences. Then your benchmark is broken. All you've done is bias the benchmark to favour your opinion, which is utterly pointless. Once you start doing something with the keys and values, avoid creating large arrays is a part and parcel of what makes each more efficient. And for your "too many caveats" argument: the semantics are clearly defined and obvious. If they are too complicated for you to bother with that's your call, but others may be less stressed by that 'complexity'. Me for example. I mention the possibility here because *I* find it useful, and others might also. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||