Closed pietroalbini closed 4 years ago
@Nemo157 fixed the check detecting index updates.
In the meantime I also changed the way changes are found: comparing the SHAs took a huge amount of time (around 40 seconds on my NVMe), slowing down running cargo test
a lot. Since we only care about sizes not increasing when purging the caches, the check now compares file sizes instead of file contents.
If you applied the should_ignore
as a filter_entry
during the walkdir
then you could avoid collecting details on those files (given that the index is likely to be the major component this would save a lot of time).
@Nemo157 good catch! Done.
This PR adds a method to purge the contents of all the caches, with the goal of freeing up disk space.