in reply to Re: compare two text file line by line, how to optimise
in thread compare two text file line by line, how to optimise

I tested this code, i elminate the sub BuildtestFile, becauseit take as i understand only part of the file, and this code is not quick as the authors said! it very slow like the other code, and it take a great amount of the RAM, 900MO, my old code take only 100 MO
  • Comment on Re^2: compare two text file line by line, how to optimise

Replies are listed 'Best First'.
Re^3: compare two text file line by line, how to optimise
by GrandFather (Saint) on Mar 03, 2016 at 06:44 UTC

    How long did the test code as written take to run on your computer?

    From the information you have given us so far it looks like the only answer is to get a modern computer with sufficient memory to allow using the memory to make the task faster. Many ways of making algorithms faster involve using more memory (which is fast) to avoid having to do as much disk I/O (which is slow). If your computer doesn't have enough memory then there may be no way to speed up the processing.

    That said, if we knew why you are trying to do this search we may be able to suggest a better solution.

    Premature optimization is the root of all job security