Skip to content

trash: Optimize trashimpl::adaptTrashSize

Méven Car requested to merge work/meven/trash-optimize into master

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.

CCBUG: 461847

Edited by Méven Car

Merge request reports