in reply to Re^4: keys and values order on a hash
in thread keys and values order on a hash
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: keys and values order on a hash
by Somni (Friar) on Jul 11, 2011 at 19:30 UTC | |
by BrowserUk (Patriarch) on Jul 11, 2011 at 20:11 UTC |