in reply to Re: I Ordered My Keys With Existing Values!
in thread I Ordered My Keys With Existing Values!

This is an interesting piece of code, and while it is doing exactly what I'm doing, it doesn't address the underlying problem that I was trying to represent.

Having to do this every time I want to display this hash will require quite a bit of extra calculations. I could store this array but then I have data duplication (memory/speed tradeoff) that I was hoping to avoid.
==
Kwyjibo. A big, dumb, balding North American ape. With no chin.

  • Comment on Re: Re: I Ordered My Keys With Existing Values!

Replies are listed 'Best First'.
Re: Re: Re: I Ordered My Keys With Existing Values!
by cleverett (Friar) on Jul 28, 2003 at 17:10 UTC
    With 2 to 7 data points the extra calculations are something less than "quite a bit", unless you're displaying the values many, many times. I suspect the threshold would be quite high before you noticed a slowdown.