I don't think it would make a big difference if at all.
I tested it right now, no difference...
Also testing without scale don't speed loading, so only conclusion is that load is slow? I use
QStringList fileNames;
//populated with i.e. 7 images, total file size 1.16MB, WinXP for( int i = 0; i < fileNames.length(); ++i)
{
tmp.load( fileNames[i] );
model.setData( model.index( i, 0 ), tmp, Qt::DecorationRole );
}
QPixmap tmp;
QStringList fileNames; //populated with i.e. 7 images, total file size 1.16MB, WinXP
for( int i = 0; i < fileNames.length(); ++i)
{
tmp.load( fileNames[i] );
model.setData( model.index( i, 0 ), tmp, Qt::DecorationRole );
}
To copy to clipboard, switch view to plain text mode
to do that. (forcing extension don't speed up loading). Load is around 500 ms - 1sec.
After some testing
load files no scale debug mode 600-700mx
load files no scale release mode 300-360mx
load files with scale release mode 360-375mx
so scaling takes around 30ms on my test files.
EDIT:
I tried also QFile; and read pixmap from bytearray same result.
Also reading 123 images, size 35 MB took (on release compilation) 11s, copying that amount data on win is practically instant.
Bookmarks