in reply to Re: Benchmark of hash emptiness test
in thread Benchmark of hash emptiness test
Is there a case for saying that a hash in a scalar context should do the simplest (or rather, quickest) operation possible to determine if it is empty or not? There could always be a builtin to return these stats if you really wanted them.
This is, after all, a very common operaion quite often used within a tight loop.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Benchmark of hash emptiness test
by demerphq (Chancellor) on Nov 10, 2006 at 10:34 UTC | |
by Hofmator (Curate) on Nov 10, 2006 at 10:55 UTC | |
by demerphq (Chancellor) on Nov 10, 2006 at 13:02 UTC | |
by aufflick (Deacon) on Nov 12, 2006 at 12:12 UTC |