Trash spec: caching the size of the trash directory
Alexander Larsson
alexl at redhat.com
Wed Aug 19 00:25:17 PDT 2009
On Thu, 2009-08-13 at 22:17 +0200, David Faure wrote:
> And then it's up to implementations to update that value, when
> adding a file to the trash, restoring a trashed file, deleting a trashed file,
> and when emptying the trash.
>
> Is this OK with other implementors of the trash spec? Can it be added
> to the spec?
I'm a bit concerned about the performance costs of this. It means that
you need to do a deep recursion into a folder counting its size when it
is trashed. Whereas otherwise trashing a large folder structure is O(1)
it now becomed O(number of files) and does a lot more I/O.
More information about the xdg
mailing list