in reply to Re^2: how to split huge file reading into multiple threads
in thread how to split huge file reading into multiple threads

I dont want other monks to get mis-directed by pasting the code.

Let "other monks" look after themselves.

If your code is taking 2 1/2 hours to process 20 million records against 600 records stored in a hash, then it is your code that has problems. Should we try and guess what mistakes you are making?

Are you for instance, treating the hash as an array? Or re-opening the output files for every record you write?

Post the code and we won't have to make such guesses.


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.
  • Comment on Re^3: how to split huge file reading into multiple threads

Replies are listed 'Best First'.
Re^4: how to split huge file reading into multiple threads
by sagarika (Novice) on Sep 02, 2011 at 08:34 UTC
    Hey I posted the code. Can you please suggest now.

      If you mean the code you posted in 923771, it doesn't even compile:

      Unmatched right curly bracket at - line 107, at end of line syntax error at - line 107, near "}" Unmatched right curly bracket at - line 108, at end of line Unmatched right curly bracket at - line 109, at end of line Execution of - aborted due to compilation errors.

      And even if it did compile, running it would do nothing as all it contains are two subroutines, that are never called.

      If you have actually run a program that takes 2 1/2 hours to process "millions of records", then why haven't you posted that code?


      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.
        Sorry for the trouble caused. I have shared the code now in my reply to 'robotics'. please suggest.