in reply to Re^2: case-insensitive hash keys
in thread case-insensitive hash keys

How many functions are there return hashrefs? Is it a great big deal to tie the hashes before filling and returning them?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^4: case-insensitive hash keys
by ManFromNeptune (Scribe) on Aug 22, 2004 at 03:52 UTC
    About 60 functions. So its a good chunk of work, but probably worth it for the maintainability. What's the efficiency/speed of using tied hashes vs. regular hashes? (this is for a high-volume web application.) thanks MFN

      Tied hashes are somewhat slower than regular ones, but if your filling the hashes from a RDBMS then the time taken to get the data will far outweight the speed of access once you have got it.


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail
      "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon