in reply to Re: Needed Performance improvement in reading and fetching from a file
in thread Needed Performance improvement in reading and fetching from a file


you are right , index + hash turned to be the best combination and i saw speed as below..
Split : 107 wallclock secs (49.84 usr + 1.81 sys = 51.65 CPU) @ 0.0 +2/s (n=1)~

i considered 2.6 lakh records and whole program is timed hash versus grep, believe me, grep is out of question, its taking time as good as counting from 1 to 2.6 lakh.
i guess i have made a poor choice of using grep in this scenario, but indeed grep cannot be used when it comes to huge data.
  • Comment on Re^2: Needed Performance improvement in reading and fetching from a file
  • Download Code