xufengnju has asked for the wisdom of the Perl Monks concerning the following question:
when we use scalar keys %MyHash to get count of keys in a hash, does perl actually go through every key? I mean if it is a big hash having more than 100,000 keys, does it slow down?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: performance of counting keys in a big hash
by demerphq (Chancellor) on May 22, 2013 at 09:14 UTC | |
Re: performance of counting keys in a big hash
by hdb (Monsignor) on May 22, 2013 at 09:16 UTC | |
by space_monk (Chaplain) on May 22, 2013 at 11:54 UTC | |
by hdb (Monsignor) on May 22, 2013 at 12:13 UTC | |
by space_monk (Chaplain) on May 22, 2013 at 12:19 UTC | |
by demerphq (Chancellor) on May 22, 2013 at 13:16 UTC | |
by hdb (Monsignor) on May 22, 2013 at 13:23 UTC | |
by demerphq (Chancellor) on May 22, 2013 at 13:44 UTC | |
by space_monk (Chaplain) on May 22, 2013 at 14:55 UTC |
Back to
Seekers of Perl Wisdom