Just another Perl shrine | |
PerlMonks |
Re^5: Using indexing for faster lookup in large fileby BrowserUk (Patriarch) |
on Mar 04, 2015 at 14:10 UTC ( [id://1118747]=note: print w/replies, xml ) | Need Help?? |
Thanks for doing that erix. 'Lookup averaged 0.012486 seconds/record Hm. Disappointed with that. I suspect a good deal of that time is down to writing the 1000 found records to the disk. I suspect that if you commented out the print of the records and reran it, it'd be more in line with the numbers I get here:
The first number is the time taken to load the index. The second run is with a warm cache:
Of course, if I run it on an SSD, it looks much nicer, especially as the cache warms up:
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".
I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
In Section
Seekers of Perl Wisdom
|
|