GNOME Bugzilla – Bug 786586
Shouldn't copy whole file before trying to thumbnail it
Last modified: 2017-08-22 11:09:54 UTC
I misunderstood what --file did, and expected accesses to the fd passed through "--file" to be proxying accesses for the real file, not the whole file to be copied into the sandbox. While this isn't such a problem for formats like images where the data is nearly 100% what's on screen, videos, and documents not so much. This could be a pretty bad regression in terms of performance for 3.26, so really needs fixing. Alex, any ideas?
Created attachment 358131 [details] [review] thumbnail: Don't copy files to /tmp before using them Instead of copying whole files to the sandbox, bind mount the _file_. This is especially important when dealing with huge files when only a tiny portion of the file will actually be read.
Attachment 358131 [details] pushed as 25fff6a - thumbnail: Don't copy files to /tmp before using them