in reply to When to use Tie

Don't forget, tie is also slow. It's actually faster to call the FETCH and STORE methods of a tied hash class directly than it is to use a tied hash.

Replies are listed 'Best First'.
Re: When to use Tie
by Abigail-II (Bishop) on Jan 29, 2004 at 16:17 UTC
    Well, that's obvious, isn't? It's even faster to execute the body of a FETCH or STORE directly, instead of calling the sub. Anything where you remove the red tape from is going to be faster. Whether it's a good idea remains to be seen.

    Abigail

      It's actually not obvious to many people, since tie is fairly magical. I have often been met with disbelief when I tell people this.