3 ms·
Why are disk usage tools always so slow? Can't the filesystem store diskusage hierarchically, so these tools can open instantly?
by amelius 6y ago
Why are disk usage tools always so slow? Can't the filesystem store diskusage hierarchically, so these tools can open instantly?
- roywiggins 6y agoWizTree can do it for NTFS volumes by parsing the MFT directly. It's much, much faster (on NTFS) than Diskitude or any other filesystem-agnostic tools. WizTree takes seconds, not minutes, to scan hundreds of thousands of files.
- Hello71 6y agowriting to each parent directory would cause enormous write amplification and terrible io performance.
- amelius 6y agoI guess you could delay the actual writing and use a journal to make sure everything is consistent even when the system crashes without a proper unmount.
- neolog 6y ago> enormous write amplification and terrible io performance Why would it be enormous instead of small?
- Hello71 6y agoimagine node_modules with dozens of layers deep nesting. each write would have 10x or 20x amplification to update the parents.
- deleted 6y ago[deleted]