Loading 50k jpegs at 512x512 at ~1 second?

It sounds like Qt 4 was deferring the actual load of these files until you
viewed them, whereas Qt 5 is loading them into memory. Not impossible,
could be an optimisation on their part.

But why on earth would you do this? :O Sounds incredibly inefficient. Why
not have icons instantiated when you view them, through the .data() member
of your model, and optionally cache them yourself where necessary?

512 x 512 x 8 bits x 4 color channels x 50,000 images comes to 419 gb of
memory utilisation, unless some of your images are the same.

What’s wrong with this picture?
​

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODrO8hMjrAvYQPP1BT7eXRm6RVXCVtZZrUDm4DYn0cXBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to