4 ms·
Why would the deduplication need to be hidden from the user? Why would everything need to become a blackbox? Hardlinks have long been a well-documented feature
by Timon3 1mo ago
Why would the deduplication need to be hidden from the user? Why would everything need to become a blackbox?
Hardlinks have long been a well-documented feature of many file systems. I don't see how their use in a context users largely do not meddle with is too confusing or complicated.
- amelius 1mo agoBecause why would you make everything more complicated if the file system can handle it just fine, plus you can automatically deduplicate other files that have nothing to do with package management?
- ecnahc515 1mo agoWell uv runs on many systems and most don't have filesystem level dedupe configured, unfortunately. Anyways it can be both? It could let the filesystem handle it if it detected the FS has file or block dedupe and fallback to hardlinks otherwise. It doesn't but that could be done if it showed it was worth it.
- Timon3 1mo agoBecause (going by scheme271's numbers) I might not want to waste lots of expensive RAM on something or mess around with offline deduplication, when a less resource-intensive alternative is entirely sufficient for whatever my use case is. Maybe it's because I've been recently playing around with deduplicating subtrees in a different domain, but I don't see what makes this feature too complex to be worth the cost. Sure, symlinks and hardlinks require some additional care compared to plain files, but it's easy enough to add tests for those cases.