|
Boost Users : |
From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2007-03-08 09:48:43
-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of Aljaz
Sent: Thursday, March 08, 2007 7:31 AM
To: boost-users_at_[hidden]
Subject: [Boost-users] iostream large file - performance
I've been testing fstream libary to read a huge text file (45
megabytes),
which has around 2 million lines..
When I do (using fstream):
It takes about 9 seconds to read the whole file..
If I open file it with any 'good' text editor (editplus, notepad++ for
instance) it takes a few seconds to read/load the whole file..
[Nat] A good text editor might *not* read the entire file. It probably
reads enough to display the first page, plus another couple of
bufferloads to anticipate you scrolling forward. From then on, it
probably reads more on demand.
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