[Qt-interest] Slow QFile with large data?

Joshua Senecal jgsenecal at yahoo.com
Thu Jan 29 08:04:43 CET 2009


Hi All,

In writing some file I/O routines, I've come across an issue with QFile. 
Specifically, when writing small amounts of data (say, 128 kilobytes at 
a time) QFile::write() is as fast as fwrite(). When writing large 
amounts of data (128 MB at a time) QFile::write() is about five times 
slower.

I've dug through the documentation but haven't found anything. Any idea 
what's going on?

Thanks!

-Josh Senecal



More information about the Qt-interest-old mailing list