19 ms·
Unfortunately lots of apps keep large caches. For example almost all electron apps keep the last two or so versions around when they auto-update. And since Ele
by 323 4y ago
Unfortunately lots of apps keep large caches.
For example almost all electron apps keep the last two or so versions around when they auto-update. And since Electron apps are around 250 MB that's 0.5 GB of old versions per app.
I recently discovered a big cache - in terms of file number, 6000 files - of basically every edit I did in the last 6 months in VS Code - called Local History. Also, every directory you launch VS Code in will have a workspace cache associated with it, it can be 200 MB if you have C++ files in it, and VS Code will not remove it when you delete the original dir.
And so on...
I wish they would all integrate into a master clear caches system app, where you would have the opportunity of seeing them and clearing them. A bit like on Android.
- cyberge99 4y agoCheck out DaisyDisk. It shows how much space is “purgable” (cache files like this, etc).
- killjoywashere 4y agoI love DaisyDisk. Easily one of my top 20 apps of all time.
- elevaet 4y agoI agree! It's worth paying for for the time and the disk space it helps you save. Beautiful visual and UX design.
- JadeNB 4y agoDisk Inventory X is a nagware alternative: http://derlien.com http://derlien.com .
- smoldesu 4y agoOr Filelight, which is free! https://apps.kde.org/filelight/ https://apps.kde.org/filelight/
- behnamoh 4y agoonly Linux and Windows.
- JadeNB 4y agoThe source is available (https://invent.kde.org/utilities/filelight https://invent.kde.org/utilities/filelight), and there's a chance it'll build on macOS. I haven't tried, though (and am not the original recommender).
- smoldesu 4y agoNo reason it shouldn't work on MacOS, a lot of KDE/Qt projects compile fine without any additional changes. But yes, if you're on Mac it's probably easier to buy Daisy Disk.
- jbc1 4y agoGrandperspective has the same look as disk inventory x but I found it to be significantly faster. I haven’t noticed any nag screens but I didn’t when using disk inventory x either so I might just be immune to them. https://grandperspectiv.sourceforge.net/ https://grandperspectiv.sourceforge.net/
- robin_reala 4y agoYou can also buy Grandperspective from the app store for a few dollars to help support the overall development.
- deleted 4y ago[deleted]
- ryandrake 4y agoXcode is a huge offender, at least for me. At 36GB, not only is it the largest application in my Applications folder (it is larger than all my other applications combined), it also litters /Library/Developer with about 9GB of shit (mostly simulator runtimes), and then litters ~/Library/Developer with 33GB of shit (mostly caches). Almost 80GB disk footprint... just to develop software?
- ChrisMarshallNY 4y agoI have a sidebar alias to my DerivedData directory (and I have Xcode set up to use it for everything). I'll flush it, from time to time. I may also delete old archives. I have hundreds of them.
- saagarjha 4y agoI would recommend being cautious about clearing old archives, as they will have symbols to help you analyze crash reports and such.
- ChrisMarshallNY 4y agoGood point. I tend to keep the last month of releases, and whatever is currently on the store. I find those symbols to be kinda worthless, though. My best tool for diagnosing a crash report is a Ouija board.
- saagarjha 4y agoSymbols are a godsend when dealing with difficult crash reports. Have you ever tried walking through the process of analyzing one with an expert? It's a great way to level up your diagnosis skills.
- nicky0 4y agoI usually just Google "how to symbolicate crash report" because I forgot how to do it it again.
- srvmshr 4y agoI was looking for previous installed versions of VSCode. Any pointers where did you find them in your `~/Library/`
- Derbasti 4y agoI once had a Photos library that consumed 250 Gb - for 80 Gb worth of photos. Thankfully there was some third party software that could automatically export and reimport all photos (it took hours), which shrank the library back to its actual size. Nevertheless, I soon stopped using Photos...
- niknetniko 4y ago> I recently discovered a big cache - in terms of file number, 6000 files - of basically every edit I did in the last 6 months in VS Code - called Local History. Isn't this a feature? I wouldn't want my editor to remove my local history without me knowing. I frequently use this local history (in Intellij), for whatever reason (it's easier than git, the project doesn't have version control, I haven't committed yet, ...)
- kevincox 4y ago6 months is a very long time for this though. I imagine that I would almost never want local history past a day or two. Beyond that I would look to my version control system. Of course if the data is small why not keep it.
- upbeat_general 4y agoI do think there should be a default expiry but I’ve absolutely went back many many months and found old versions of files in cases I didn’t have proper commits.
- arve0 4y agoThe history feature in VSCode have saved me multiple times. To me, 200MB per workspace is worth it.
- capableweb 4y agoAre you not using Git/any SCM or what?
- zuhsetaqi 4y agoThey don't do anything automatically. VSCodes feature does keep every saved state of every file
- capableweb 4y agoOf course not. But why would I need "every saved state of every file"? The number of times that would have saved me would be zero, because I never ended up in a case where that would have saved me. Things I need saved are saved as stashes/things put in git, and the rest are things I don't need saved. What scenarios are there where things like this would have saved me somehow?
- anta40 4y agoTrue: Whatsapp, MS Teams, Android Studio, Homebrew, etc. Really pain in the a*ss if you're on 128 GB Mac.
- mcculley 4y agoThere should be one directory where all apps keep caches in subdirectories, managed by the operating system, evicting cached files as necessary using some LRU policy. (MacOS has well-defined cache directories, but nothing managing them.) Likewise for system RAM. Lots of apps are using RAM to cache with no way to coordinate.
- smnscu 4y agoThat vscode cache saved my ass at least once, when I deleted uncommitted changes accidentally.