https://bugs.kde.org/show_bug.cgi?id=442972

--- Comment #1 from Lynx3d <lynx.mw+...@gmail.com> ---
I did a bit of digging to find out what takes so long.
Turned out it is:

KisMimeData::retrieveData(mimetype = "application/x-qt-image", preferredType =
QVariant::QImage)

It takes so long because it creates a temporary document with the size of the
original image, and pulls the projection from it, and converts it to QImage.
This takes ~3s even for something as small as 1000x1000 pixels.

I don't really understand why "cb->setMimeData(data);" in
KisClipboard::setLayers() immediately triggers the QImage conversion, or why
creating a new document is so insanely expensive, or why it is done for a
single layer now in the first place, and why it is not cropped to the actual
selection that was copied.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to