Boost logo

Boost Users :

From: Kevin Heifner (heifner_k_at_[hidden])
Date: 2007-03-08 20:07:11


Aljaz wrote:
> Whats the 'proper' way to read files to memory? How do text editors do this?
> They load the same file in 4 seconds!
> I need a fastest way to read about 10 000 lines from text file at once..

Not exactly relevant, but a co-worker of mine wrote some blog
entries about the performance of writing files and a bit about
reading. For reading, the main point was that you can read a
unfragmented file much faster than a fragmented one.

http://justin-michel.spaces.live.com/?_c11_BlogPart_blogpart=blogview&_c=BlogPart&partqs=cat%3dCode%2bPerformance

KevinH

-- 
Kevin Heifner  heifner @ ociweb.com  http://heifner.blogspot.com
           Object Computing, Inc. (OCI) www.ociweb.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net