pnpm hard links
Tool
pnpm, a package installer, can use hard links: many file names point to one stored copy instead of duplicating files. The result depends on the file system underneath. On Linux XFS one reinstall test fell from 7 to 2.85 seconds; on a Mac installs grew from about 40 to about 100 seconds.
Theo's current stance
Great on Linux with XFS, bad on the Mac.
Try it
- On a Linux XFS setup, ask your agent to switch pnpm to hard links and re-time installs.
- Don't make that switch on a Mac expecting a speedup.
First seen
25:42
nuts. And the one performance gap that existed between EXT4 and XFS, which was the deletion and recreation one from the Novox bench, gets flattened immediately when you start using hard links for PNPM instead. It goes from 7 seconds to 2.85.
Every mention
25:42
nuts. And the one performance gap that existed between EXT4 and XFS, which was the deletion and recreation one from the Novox bench, gets flattened immediately when you start using hard links for PNPM instead. It goes from 7 seconds to 2.85.
22:00
again, APFS does support links if you're willing to eat a huge overhead when you do it because now it went from taking 40 secondsish to 100 seconds when you're installing your node modules with hard links. insane because all of those links being created takes a ton of overhead on
Theo Daily is unofficial and not affiliated with Theo or t3.gg. Written by Claude Opus 5.5 from each video's transcript.