Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
Don't work out a group's suggested copies at every redraw
Țugui Dragoș8ce3b92a99d8
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7bce2e8a..6a86a1b4 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -650,6 +650,7 @@ its changes the way [Keep a Changelog](https://keepachangelog.com/) suggests.#### Duplicates+- A checkbox on a group's page answers about three times faster with tens of thousands of copies.- A copy Finder names in Japanese, Chinese, or Polish counts as a copy when the name holds a space too, so the originalis the one kept.- Nothing is compared while the exclusions can't be read, and what is inside an app's document is never offered,diff --git a/Packages/PeelCore/Sources/PeelCore/Duplicates/Duplicates.swift b/Packages/PeelCore/Sources/PeelCore/Duplicates/Duplicates.swiftindex 0147cc6a..4d7859c1 100644--- a/Packages/PeelCore/Sources/PeelCore/Duplicates/Duplicates.swift+++ b/Packages/PeelCore/Sources/PeelCore/Duplicates/Duplicates.swift@@ -105,7 +105,8 @@ public struct DuplicateGroup: Sendable, Hashable, Identifiable {/// True when moving the suggested copies frees less than they take, since something else holds the same blocks.public var sharesStorage: Bool {- suggestedFiles.contains(where: \.sharesStorage)+ // Asked at every redraw of the group's page, so working out the suggested copies waits until a copy shares any.+ files.contains(where: \.sharesStorage) && suggestedFiles.contains(where: \.sharesStorage)}/// True when the copies are on more than one disk, so what moving them frees is not all on one.