4 ms·
Bun already supports that [0]. It is the default behavior on Linux, but can also be enabled on macOS. [0] https://bun.sh/docs/install/cache#saving-disk-space h
by Cu3PO42 3y ago
Bun already supports that [0]. It is the default behavior on Linux, but can also be enabled on macOS.
[0] https://bun.sh/docs/install/cache#saving-disk-space https://bun.sh/docs/install/cache#saving-disk-space
- oefrha 3y agoNice! I was looking at du(1) output on macOS which appears to indicate all files are duplicated. It probably just can’t tell the files are clonefile’d.
- Jarred 3y agoThere is a very obscure undocumented api in macOS for detecting if two files are equal block-by-block but yeah I don’t think most tools can tell when files are clonefile’d
- Cu3PO42 3y agoJust a note on your documentation: it says "this benefit does not extend to macOS" about saving disk space. I find that to be slightly misleading. Since arguably the most common FS for macOS is now APFS, it does save significant disk space unless one were to modify the node_modules files.
- thunderbong 3y agoAny chance of this coming to Windows? Most of our developers are on Windows systems.
- hiccuphippo 3y agoKeep track of this issue: https://github.com/oven-sh/bun/issues/43 https://github.com/oven-sh/bun/issues/43 According to that, the speed benefits will probably not be as noticeable in windows.