trash: Optimize trashimpl::adaptTrashSize
Three small changes, improving perf:
-
Avoid calling multiple times TrashSizeCache.calculateSize when freeing space in trash
-
Make TrashSizeCache::calculateSize not check modification dates.This divides by two the number of stats run for each file already in the trash each time a file is moved into the trash.
Edited by Méven Car