Daniel Bauer wrote:
On Thursday 14 July 2011 08:45:52, Per Jessen wrote:
Tejas Guruswamy wrote:
On 14/07/11 07:08, Per Jessen wrote:
PDF documents for instance can be quite sizeable, is there any reason why I shouldn't set the preview size limit to 100Mb for local files?
To generate a preview the whole file has to be read and parsed. So if you have a directory full of very large files it can be quite slow reading them all, and it would take a lot of memory and cpu time. The "max preview size" tries to give you a way to avoid that.
Thanks Tejas - do you happen to know if the previews are cached? I would basically like to set a very/reasonable high limit to produce previews for virtually everything (to stop users from complaining about inconsistent previews), but if they're not cached, that's out of the question.
I think they are cached in ~/.thumbnails (not sure). However, once the previews are made they always appear immediately.
Ah yes, I was thinking about thumbnails - it looks like that is where they are kept.
I have set my max size to 75MB, because I have a lot of large files. It doesn't take very long to generate the images, but I have a quite fast computer (Intel i7 950 3GHz, 16 GB Memory). I don't know is if the thumbnails are managed actively (if they are deleted when the file is deleted or changed.)
If not, that directory would soon take up a lot of space. Well, I see no reason why not to set the preview filesize limit quite high (like you have too). What would be nice though would be to have thumbnails for remote files stored remotely/per-directory such that a 2nd user browsing a remote (group-)directory would not have to wait for the preview to be generated. Or one could perhaps even pre-generate previews at night. -- Per Jessen, Zürich (14.4°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org