I read binary data in portions (e.g. 100 bytes) from a file using QDataStream to process it then. Basically QDataStream stream(&file)
with file being a QFile.
Everything works fine so far. But I guess that in general processing is faster when small data portions are not being read from the file one by one, but from a buffer which is fed by the file with bigger amount of data. So here are my questions:
Is such a buffering already done internally when using QDataStream such that a manually implemented buffer would not further speed up the processing? That is, internally Qt will read more than the 100 bytes from the file?
If not, what is the best way to manually do such a buffering? QBuffer?
Thanks for your answers and experiences,
Chris