in reply to Re: Parallel structures are NOT maintainable
in thread using references as keys in a hash.

Actually, it's both - I do work primarily on large and very-large systems. And, I am seriously overpaid by my current employer. :-)

And it came from the fact that I have been told to "save a Meg of RAM, not matter what it took". *shrugs* Reminded me of the Dilbert cartoon where the little bald guy says "I'm going to write me a minivan this week!"

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

  • Comment on Re: Re: Parallel structures are NOT maintainable

Replies are listed 'Best First'.
Re: Parallel structures are NOT maintainable
by jonadab (Parson) on Feb 25, 2003 at 16:04 UTC
    And it came from the fact that I have been told to "save a Meg of RAM, not matter what it took".

    Ah. Saving a meg of RAM is not a good reason to use parallel hashes for a complex problem, I can agree on that point. In fact, I've been known to save myself time by throwing an enormous partially-redundant hash at a problem thus consuming around a hundred megs of RAM where it would have been possible to use less than half that. Of course, that script only has to run once a year, so it isn't worth optimising -- which I think is really what this discussion came to be about: knowing when something is worth doing and when it isn't.

    And don't let word get back to your employer that you are overpaid :-)


    sub H{$_=shift;while($_){$c=0;while(s/^2//){$c++;}s/^4//;$ v.=(' ','|','_',"\n",'\\','/')[$c]}$v}sub A{$_=shift;while ($_){$d=hex chop;for(1..4){$pl.=($d%2)?4:2;$d>>=1}}$pl}$H= "16f6da116f6db14b4b0906c4f324";print H(A($H)) # -- jonadab