id summary reporter owner description type status milestone component version severity resolution keywords cc 817 Performance problem in iostreams nobody Jonathan Turkanis "{{{ iostreams dumps its internal buffers every time seekg or tellg is called even if the seek is to the current position. The following function should check if the seek position is within the buffer and, if so, adjust the buffers. template typename indirect_streambuf::pos_type indirect_streambuf::seek_impl (stream_offset off, BOOST_IOS::seekdir way, BOOST_IOS::openmode which) { if (pptr() != 0) this->BOOST_IOSTREAMS_PUBSYNC(); // sync() confuses VisualAge 6. if (way == BOOST_IOS::cur && gptr()) off -= static_cast(egptr() - gptr()); setg(0, 0, 0); setp(0, 0); return obj().seek(off, way, which, next_); } jerker.ohman@umetrics.com }}}" Bugs closed iostreams None Problem fixed