in reply to Re^2: Fast data structure..!!!
in thread Fast data structure..!!!

Get a faster computer. On my notebook (about 1 year old, 2 GHz CPU and enough RAM) this takes about 1.6 seconds. I don't say that boast, but rather to tell you that your hardware isn't up to date.

And are you sure that you actually access all items of that data structure? Right now you just build it up, but don't use it, so there's no way for us to tell.

Replies are listed 'Best First'.
Re^4: Fast data structure..!!!
by kyle (Abbot) on Apr 15, 2008 at 16:22 UTC

    It may run that fast because the OP didn't supply a value for $dp. I pasted the code into a file that has use strict at the top, and it blew up immediately.

      Well, he wrote that it's the real code. If it's not, I can't help. Sorry.
        ok, may you have right i should write all the code..offcourse i declare all the values and use strict..Sometimes i think that these things are standar in this palce..