http://www.perlmonks.org?node_id=680547


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.