Trash spec: directory size cache

Jerome Leclanche adys.wh at gmail.com
Mon Apr 15 15:24:45 PDT 2013


On Mon, Apr 15, 2013 at 9:56 PM, David Faure <faure at kde.org> wrote:

> On Monday 15 April 2013 21:40:52 Jerome Leclanche wrote:
> > Ah sorry, I thought you wanted to store it in multiple separate files :)
>
> No, TRASH_DIR/directorysizes will contain the multiple lines I showed in my
> email.
>
> > The simple file format is nice however I have a small concern about
> > extensibility; any new value added is going to break backwards
> > compatibility, unless we specify that additional values may be eventually
> > added.
>
> There isn't much to add in order to solve the question 'how big is this
> directory'. No extensibility is needed here.
>
> > Performance-wise, does it really matter that much? There should/will be
> an
> > ini parser because of the trashinfo files anyway.
>
> Yes, parsing 1000 files is really a lot slower than parsing one file.
> Due to I/O, and due to cache locality.
> The whole point of a cache is to be fast, otherwise we wouldn't be doing
> this
> in the first place.
>

I meant does it matter that much to avoid an ini-based format there
(keeping, of course, the single file)


>
> --
> David Faure, faure at kde.org, http://www.davidfaure.fr
> Working on KDE, in particular KDE Frameworks 5
>
>

J. Leclanche
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xdg/attachments/20130415/15ba4aaa/attachment.html>


More information about the xdg mailing list