in reply to Re^7: Finding the size of a nested hash in a HoH
in thread Finding the size of a nested hash in a HoH

The comments from BrowserUks reply apply to my benchmark as well, it is flawed

In while_each i fetch both key and value, while in for_keys i only betch the keys

Well, it was a step in the right direction :)

  • Comment on Re^8: Finding the size of a nested hash in a HoH

Replies are listed 'Best First'.
Re^9: Finding the size of a nested hash in a HoH
by remiah (Hermit) on Nov 12, 2011 at 02:33 UTC
    I was wrong.

    In while_each i fetch both key and value, while in for_keys i only betch the keys

    As you say, this seems to have great effects when looping through million times.