in reply to Re: Comparing memory requirements for hashes and arrays
in thread Comparing memory requirements for hashes and arrays

Don't forget that Perl uses power of 2 buffering, so your array probably takes up considerably more space than just the number of elements in it.

Also the simple debuggability and extensibility of hash-based structures makes them a win over arrays in my books. Even if up front you think the development speed is going to be similar, the debugging speed will not be...

  • Comment on Re (tilly) 2: Comparing memory requirements for hashes and arrays