-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Aljaz Sent: Thursday, March 08, 2007 16:15 To: boost-users@lists.boost.org 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