Re: GSD should not housekeep the thumbnails

Philip Van Hoof wrote:
> On Tue, 2008-09-16 at 13:36 +0100, Rob Taylor wrote:
>> Patryk Zawadzki wrote:
>>> On Tue, Sep 16, 2008 at 2:30 PM, Rob Taylor <rob taylor codethink co uk> wrote:
>>>> could also clean out thumbnails that haven't been *accessed* after a
>>>> certain time period, which should give better performance.
>>> How do you do that when 99% of desktop PCs use noatime precisely for
>>> that - perfomance? ;)
>> Don't use atime? The daemon knows when the thumbnails have been accessed
>> because it served them.
> You are not required to ask the daemon each time. You can just first
> lookup the thumbnail path for an original, and if it's not there you
> could ask the thumbnailer to make it for you. And then it'll tell you
> when it's finished with that.
> That's also the recommended way. Calculating an MD5 is less expensive
> than doing a DBus method.
> Of course is this a task for a toolkit specific library that does
> thumbnailing for your application developers.

Ah, good point, I guess LRU is out of the question then. Maybe random
would be better than the current heuristics ;)


Rob Taylor, Codethink Ltd. -

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]