Keep It Simple, Stupid | |
PerlMonks |
Re^2: why won't the hash go away?by WoodyWeaver (Monk) |
on Jan 13, 2008 at 00:17 UTC ( [id://662127]=note: print w/replies, xml ) | Need Help?? |
...but oh, the cost! This is a search algorithm, and the "trick" is to avoid having to search a node twice; the underlying game is "Spider", and there is a lot of repetitions between positions. So the hash lookup gets done *a lot*. By making it a tie, now not only do I have to do something fancy to invoke the tie, but I'm going to be bogged down my disk access. Of course, the thrashing means I'm bogged down by disk access as well, so...
In Section
Seekers of Perl Wisdom
|
|