in reply to More efficient Data Structure needed

The contents of @data are as large as 60 meg

Assuming you mean there can be 60 million entries in @data, you may be suffering from memory thrash while you're rewriting your data records. Is there any way that you can do the record rewriting while you're building up @data?

  • Comment on Re: More efficient Data Structure needed