|
Boost Users : |
From: Jeff F (TriumphSprint2000_at_[hidden])
Date: 2007-03-08 20:27:20
>> -----Original Message-----
>> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
>> bounces_at_[hidden]] On Behalf Of Aljaz
>> Sent: Thursday, March 08, 2007 16:15
>> To: boost-users_at_[hidden]
>> Subject: Re: [Boost-users] iostream large file - performance
>>
>> So it would be better to do read instead of getline?
>>
>> Would read() and boost::tokenizer to split lines be faster?
>> Is there even faster way?
Eric Teutsch wrote:
> I'm not sure what your need is, but for fastest performance, read the
> file into a large byte array, and only split the lines where you need
Wouldn't the fastest way be to not read it into an array, but to open via
memory mapped file and address it directly? I've not used the
boost.interprocess library, but IIRC, it provides this facility.
Jeff F
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