|Keep It Simple, Stupid|
Re^7: Reading HUGE file multiple timesby BrowserUk (Pope)
|on Apr 28, 2013 at 14:42 UTC||Need Help??|
Problem is there is an error with tell and it's all -1.
D'oh! I made the same mistake you did; I forgot to change ARGV for $Library. The line should read:
I tested the write-the-index-to-disc code with a file containing 17,000 id/record pairs with 300,000 data records (5.2GB).
This creates the index and writes it to disc:
The whole process takes a little over 3 minutes:
And this code loads that index from disk (<1 second) and the reads 1000 random records (26 seconds) using it:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.