in reply to Re^2: Out of Memory Error : V-Lookup on Large Sized TEXT File
in thread Out of Memory Error : V-Lookup on Large Sized TEXT File
I also do not consider storing reference data into an array to be wrong (a hash might be better, but we don't know enough about the data to be sure). But storing the data in an array and then looping on that array is not good, it would be better to iterate on the lines. My view is that it makes sense to store the reference data in memory if you then iterate on the large file and use the in-memory data structure to look up for something. But again, we don't know enough about the data and about the real intent of the program.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Out of Memory Error : V-Lookup on Large Sized TEXT File
by Marshall (Canon) on Apr 30, 2015 at 03:59 UTC |