After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 775910 - general: only set icon position metadata when in desktop
general: only set icon position metadata when in desktop
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-09 23:01 UTC by Carlos Soriano
Modified: 2016-12-10 06:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
general: only set icon position metadata when in desktop (12.11 KB, patch)
2016-12-09 23:01 UTC, Carlos Soriano
committed Details | Review

Description Carlos Soriano 2016-12-09 23:01:52 UTC
.
Comment 1 Carlos Soriano 2016-12-09 23:01:56 UTC
Created attachment 341697 [details] [review]
general: only set icon position metadata when in desktop

We were setting the icon position metadata for any operation in any file
due to legacy code where nautilus was able to have a
freedom-of-placement canvas in the regular windows.

However that changed and we can only have freedom-of-placement in the
desktop window.

Setting the metadata is a extremely expensive operation, and was causing
issues, outlined in https://bugzilla.gnome.org/show_bug.cgi?id=757747,
summarizing copy and move operations where really slow when using drag
and drop, operations when we need to store the icon position when using
a freedom-of-placement canvas view.

This patch tries to only set the metadata when necessary, which is when
using the desktop window. However the code is pretty integrated with the
rest of Nautilus, so the patch was able to isolate the part when the
metadata is set and only provide metadata when the target is the desktop.
However, for unsetting the metadata the patch need to check if it's
the desktop inside the file-operations, which is less than ideal.
Comment 2 Carlos Soriano 2016-12-09 23:03:33 UTC
Let's see if it works properly...

Attachment 341697 [details] pushed as 6205e6b - general: only set icon position metadata when in desktop
Comment 3 jeremy9856 2016-12-10 06:06:14 UTC
Thank you Carlos !