Reading bigger file

Chris Cain clcain at uncg.edu
Fri Mar 8 07:31:45 PST 2013


On Friday, 8 March 2013 at 15:25:02 UTC, bioinfornatics wrote:
> why when reading a huge file more i advance into the file more 
> that take time to get a line ?

----
     StopWatch   sw;
     while( !fastq1.empty ){
         sw.start();
         auto        q1          = fastq1.next();
         sw.stop();
         writeln( sw.peek().msecs() );
     }
----

That's because you never reset the StopWatch.


More information about the Digitalmars-d-learn mailing list